What is the most efficient way to obtain the centroid of each cluster of centroids in the matrix produced by 'kmeans' cluster analysis?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am counting geese in large flocks in aerial photos using the 'detectSURFFeatures' function to identify individual geese. This gives me multiple feature centroids clustered at each goose image, which I analyze with 'kmeans'. I am currently sorting the resulting matrix of centroid values on cluster labels and using loops to calculate the mean centroid value for each cluster (see attached code).
댓글 수: 0
채택된 답변
Image Analyst
2016년 12월 3일
The most efficient way would be to get the second return argument of kmeans(). I mean, it gives you the cluster centers so why not accept them?
댓글 수: 0
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!