image color detection

15 visualizaciones (últimos 30 días)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 18 de Mayo de 2012
Comentada: Image Analyst el 4 de Abr. de 2017
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'

Respuestas (4)

Geoff
Geoff el 18 de Mayo de 2012
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 comentarios
manjari priya
manjari priya el 3 de Abr. de 2017
Can you please provide the source code of this?
Image Analyst
Image Analyst el 3 de Abr. de 2017
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

Iniciar sesión para comentar.


Image Analyst
Image Analyst el 18 de Mayo de 2012
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 el 29 de Mzo. de 2017
How to identify the forest part as green colour and land part as gray colour from the image?
  3 comentarios
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 4 de Abr. de 2017
dear image analyst, how to create a exe file to read and display an image

Iniciar sesión para comentar.


manjari priya
manjari priya el 3 de Abr. de 2017
Can you provide me source code for this?

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by