How to plot or mark the centroid of each cluster in the output image?

9 ビュー (過去 30 日間)
MINO GEORGE
MINO GEORGE 2021 年 9 月 2 日
回答済み: Sreedhar Arumugam 2021 年 9 月 7 日
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

回答 (1 件)

Sreedhar Arumugam
Sreedhar Arumugam 2021 年 9 月 7 日
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.

カテゴリ

Help Center および File ExchangeCluster Analysis and Anomaly Detection についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by