MATLAB: Kmeans vs imsegkmeans, what the difference

image processingimage segmentationMATLABmatlab function

Hi, Im currently working on image segmentation and was wondering what the difference bewtween the two functions is?

Best Answer

As per my understanding, there is not much difference in the underlying functionality of both kmeans and imsegkmeans as both does clustering of data.
imsegkmeans clusters the image based on the color of each pixel of that image.
kmeans clusters the data into given number of clusters. You can replicate the functionality of imsegkmeans with kmeans with some pre-processing.
You can refer following links to understand more about them