필터 지우기
필터 지우기

how to identify a color from an image

조회 수: 1 (최근 30일)
nida
nida 2013년 12월 13일
댓글: Image Analyst 2013년 12월 27일
the color component should be the output eg-if the color of the image is green i need the output green. if the color is burgundy red,or crimson,or any mix output should say its presence. i tried documentation on matlab but could understand like how to specifically apply specification and thresholding.

답변 (1개)

Image Analyst
Image Analyst 2013년 12월 13일
Did you try any of my color segmentation demos yet? They're in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
  댓글 수: 4
nida
nida 2013년 12월 27일
your hue segmentation demo was very helpful. but i would like to keep thresholds for other colors too like shades of red (dark,crimson,maroon etc), or gray or any other color. what would be there rgb ratio for that and would it be with same syntax as for yellow in your code. thank you.
Image Analyst
Image Analyst 2013년 12월 27일
It depends on the shape of your gamut in the different color spaces as to which colorspace it would be easier to segment your color. You might be able to use RGB color space, lab color space, or hsv color space. The hue is constant as the color goes from bright to dark or from vivid red to pink to crimson, so if you want all those colors in the same segmentation you could use hsv space. You could also get just dark reds if you specify that the V or L value is less than, say, 50 or whatever darkness value you want.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by