필터 지우기
필터 지우기

using kmeans to convert rgb image to grayscale

조회 수: 1 (최근 30일)
nguyen tien
nguyen tien 2016년 1월 12일
댓글: John D'Errico 2016년 1월 12일
I have a rgb image, I want to use kmeans to convert rgb image to grayscale. can you help me, please?

답변 (1개)

Image Analyst
Image Analyst 2016년 1월 12일
Why kmeans() specifically? Why not just use rgb2ind()?
  댓글 수: 3
Image Analyst
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
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!

Translated by