using kmeans to convert rgb image to grayscale
2 次查看(过去 30 天)
显示 更早的评论
I have a rgb image, I want to use kmeans to convert rgb image to grayscale. can you help me, please?
0 个评论
回答(1 个)
Image Analyst
2016-1-12
Why kmeans() specifically? Why not just use rgb2ind()?
3 个评论
Image Analyst
2016-1-12
How is simply converting to grayscale "recognition"???
Anyway, see the MATLAB demo for image segmentation using kmeans: http://www.mathworks.com/examples/image/2068-color-based-segmentation-using-k-means-clustering
John D'Errico
2016-1-12
I'm not at all sure I see how kmeans is intended to be used for an RGB - gray scale conversion. kmeans is a clustering algorithm. As such, it would have no value for your project.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!