1 min readApr 9, 2020
Elishiah Miller Yes, the python code returns the centroid of each superpixel. If you go through the code that I have provided, you will find the functions 1. assign_pixels_to_cluster 2. reassign_cluster_center_acc_to_grad and 3. update_cluster_mean, these were used to obtain the centroids. If you have any other query regarding the implementation part Feel free to ask.