how to use k means
조회 수: 3 (최근 30일)
이전 댓글 표시
I have detected features of image using
I = imread('cameraman.tif');
points = detectSURFFeatures(I);
now i have to apply k means to cluster the points,plz ell how i can use k means
댓글 수: 1
답변 (1개)
Wayne King
2013년 5월 16일
Jose-Luis has a very good suggestion.
You can use kmeans() as follows:
I = imread('cameraman.tif');
points = detectSURFFeatures(I);
% I'll assume 3 clusters
idx = kmeans(points.Location,3);
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!