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

2 views (last 30 days)
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?

Answers (0)

Community Treasure Hunt

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

Start Hunting!