How to obtain number of clusters in k-means clustering for images

2 views (last 30 days)
I used the example in Colour-Based segmentation (<http://www.mathworks.com.au/help/images/examples/color-based-segmentation-using-k-means-clustering.html)>, and it works for the images that I am analyzing. However, I wonder if it is possible to derive computationally, based on the data in the image, the number of clusters (instead of me arbitrarily setting a number). Thanks!

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!