How can i choose the k initial centroids far away from each other in k-means clustering based image segmentation
조회 수: 2 (최근 30일)
이전 댓글 표시
The steps performed for k-means clustering are as follows:
- Choose k initial centroids
- Compute the distance from each pixel to the centroid
- Recalculate the centroids after all the pixels have been assigned
- Repeat steps 2 and 3 until the same points are assigned to each cluster in consecutive rounds.
How can i choose the k-initial centroids, such that they are far from each other.
댓글 수: 0
채택된 답변
Alok Nimrani
2019년 2월 21일
You can make use of k-means++ algorithm to choose the initial centroids far away from each other. This algorithm is the one used by default while performing k-means clustering using the k-means function in MATLAB.
Hope this helps.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!