image color detection

15 次查看(过去 30 天)
Sivakumaran Chandrasekaran
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 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
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