Regarding color detectin and recognition
2 views (last 30 days)
Show older comments
Greetings .. i have been seing ur posts and the help u r providing... i am new to matlab and looking for help in color detection and recognition .. please let me if there are any inbuilt commands or codes available...
0 Comments
Answers (1)
Image Analyst
on 15 Feb 2014
Not sure who "ur" and "u" is, but have you seen my posts or File Exchange : http://www.mathworks.com/matlabcentral/fileexchange/authors/31862 Lots of color demos there.
Also see Professor Stephen Westland's Computational Colour Science code (that accompanies his book on the subject): http://www.mathworks.com/matlabcentral/fileexchange/?search_submit=fileexchange&query=westland&term=westland
2 Comments
Image Analyst
on 16 Feb 2014
Did you notice that the screenshot for http://www.mathworks.com/matlabcentral/fileexchange/31118-color-segmentation-by-delta-e-color-difference has detected all the red objects in the image ? That seems like a natural one to try first.
Regarding "knowing" that it has detected red, just sum up the red mask image
redPixelsExist = sum(redMask(:)) >= 1;
If there is at least one red pixel, redPixelsExist will give you a true value, otherwise if no red is there redPixelsExist will be false.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!