title: modified k-mean algorithm for an image clustering
body: <p>i m trying to implement the modified k_mean algorithm for an image clustering i.e very much similar to k-mean. Difference is only of new center calculation.</p>
  
  <p>Actually i have initialize the cluster centers, calculated distance between pixels and centers, now based on minimum distance i'll have to assign the pixels to clusters but here problem is that how to assign and store pixels to clusters, How would i know which pixel belongs to which cluster for new center calculation ?</p>