image color detection
Afficher commentaires plus anciens
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'
Réponses (4)
Geoff
le 18 Mai 2012
1 vote
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 commentaires
manjari priya
le 3 Avr 2017
Can you please provide the source code of this?
Image Analyst
le 3 Avr 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
Image Analyst
le 18 Mai 2012
0 votes
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
le 29 Mar 2017
0 votes
How to identify the forest part as green colour and land part as gray colour from the image?
3 commentaires
Image Analyst
le 29 Mar 2017
Modifié(e) : Image Analyst
le 29 Mar 2017
Why don't you try the Color Thresholder on the Apps tab or the tool ribbon?
Sivakumaran Chandrasekaran
le 4 Avr 2017
Image Analyst
le 4 Avr 2017
manjari priya
le 3 Avr 2017
0 votes
Can you provide me source code for this?
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!