clustering the image using k menas.
2 次查看(过去 30 天)
显示 更早的评论
Hello, i have to clustering, greyscale and rgb image,
what is the procedure for clustering image ?
IDX = kmeans(X,k) is defined kmeans.
what is X in kmeans as input in the image ?
Thanks.
0 个评论
回答(1 个)
Image Analyst
2014-3-17
As background for others who wanted to try something with the Statistics Toolbox (which I don't have), I suggested a 1D vector of all the image gray level values, grayImage(:), for his "X" in http://www.mathworks.com/matlabcentral/answers/121795#comment_202439. But I couldn't test it for him because I don't have the Stats toolbox.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!