Clustering, Segmentation, Data Science, Remote Sensing, Satellite.
of them. for metric, Class in zip(['euclidean', 'manhattan'], [2,1]): img1_water = np.count_nonzero(segmented_1[metric].Class.values == Class)*500*500*1e-6 #pixel size is 500, so the area is 500*500 and to convert to km2 * 1e-6 img2_water = np.count_nonzero(segmented_2[metric].Class.values ==