How to detect various colors in a image?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to detect various colours of a image accurtely. If there is a red colour in image with different intensities the code must able to detect the changes and must generate a separate plot for it.
1 Commento
jgg
il 11 Dic 2015
The standard imread command ( http://www.mathworks.com/help/images/read-image-data-into-the-workspace.html ) will return you a map of your image with the colour channels seperated out. For instance, in a .jpeg, the red colour channel corresponds to im(:,:,1).
I'm not sure what you mean plot in this context. Can you give an example of what you're trying to do?
Risposte (2)
Image Analyst
il 12 Dic 2015
See several color segmentation demos in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
In addition, see the attached zip file where I find the green parts of a Sharpie marker pen moving in a video.
0 Commenti
Image Analyst
il 12 Dic 2015
An alternative to my other answer is one that looks at a video and finds the mean intensities of the R, G, and B channels and plots them.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172347/image.jpeg)
0 Commenti
Vedere anche
Categorie
Scopri di più su Convert Image Type in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!