calculating centroids
조회 수: 13 (최근 30일)
이전 댓글 표시
I have divided the video into frames ,can u tell how to calculate cluster centroids using k means algorithm please
댓글 수: 0
채택된 답변
Image Analyst
2012년 1월 12일
Here's the demo:
After that, if you need spatial centroids (x,y,z locations) in addition to color centroids (the RGB values of the color clusters' centroids), it's a simple matter to find centroids using bwlabel() and regionprops(), like in my BlobsDemo ( http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 ).
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!