Regarding color detectin and recognition
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Image Analyst
2014-2-15
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 个评论
Image Analyst
2014-2-16
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.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!