Clustering, Segmentation, Data Science, Remote Sensing, Satellite.
changing. Image by author. Time To Code. Now let’s wrap this really simple idea behind k-Means into python code. Reminder: in this task we have 3D problem, i.e. our X, Y and Z are Red, Green and Blue image channels! def kmeans(data, K, kind): L = list() new_centroids = data.sample(K).values data =