How to plot or mark the centroid of each cluster in the output image?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have used k means algorithm to cluster the image into 6. After this how can i view the centroids of each cluster in the image? Any help is appreciated
0 Kommentare
Antworten (1)
Sreedhar Arumugam
am 7 Sep. 2021
I am assuming you're using the built-in function of MATLAB to perform k-means clustering of your data.
[idx,C] = kmeans(data,6) % As you are dividing into 6 categories
The matrix C would be a 6x2 matrix containing the centroids of each cluster.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Cluster Analysis and Anomaly Detection finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!