image color detection

조회 수: 14 (최근 30일)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 5월 18일
댓글: Image Analyst 2017년 4월 4일
how to detect the color of the given image.
if the given image color is green, then the output should be displayed as 'green' if the given image color is red, then the output should be displayed as 'red' if the given image color is pink, then the output should be displayed as 'pink'

답변 (4개)

Geoff
Geoff 2012년 5월 18일
What about purplish-greenish-gray?
Where do you draw your boundary?
Anyway...
A simple approach here is to define all the colours you want to detect as normalised RGB triples, and then calculate how well a particular pixel (also normalised) matches a colour. This is loosely classed as fuzzy logic.
You calculate a score against that pixel against each of your colours, and then choose the colour with the best score.
  댓글 수: 2
manjari priya
manjari priya 2017년 4월 3일
Can you please provide the source code of this?
Image Analyst
Image Analyst 2017년 4월 3일
Essentially that's what my Color Segmentation by Delta E tutorial does: http://www.mathworks.com/matlabcentral/fileexchange/31118-color-segmentation-by-delta-e-color-difference

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


Image Analyst
Image Analyst 2012년 5월 18일
I hvae several color detection programs uploaded to my File Exchange. You might want to take a look at them: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

manjari priya
manjari priya 2017년 3월 29일
How to identify the forest part as green colour and land part as gray colour from the image?
  댓글 수: 3
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2017년 4월 4일
dear image analyst, how to create a exe file to read and display an image

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


manjari priya
manjari priya 2017년 4월 3일
Can you provide me source code for this?

카테고리

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