Assigning same labels for the same segments in two clustering-iterations

Hi,
I am using kmeans clustering to segment pixels in an image. But every time I run kmeans, it spits different labels for the same segment. How can I make it to give me the same label for each iteration?

1 Comment

https://www.mathworks.com/matlabcentral/answers/319015-k-means-clustering

Sign in to comment.

Answers (0)

Asked:

on 14 Feb 2017

Commented:

on 17 Feb 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!