how to use k means
2 ビュー (過去 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!