detecting colours
Show older comments
I want to detect both brown and whit colours,can anyone tell how to proceed plz
Answers (2)
Jan
on 23 Feb 2012
0 votes
You find a lot of color detection questions in this forum. Please take the time to read, how to detect red and yellow colors, and make a transfer to brown and white.
5 Comments
FIR
on 23 Feb 2012
Jan
on 23 Feb 2012
If you are interested in image processing, you should know different strategies to define a color. E.g. in the RGB color space "white" can be defined as "all(RGB > 250)" or another useful limit. You can work in HSV also - see e.g. http://en.wikipedia.org/wiki/HSL_and_HSV .
FIR
on 23 Feb 2012
FIR
on 23 Feb 2012
Jan
on 25 Feb 2012
In "diff_im = imsubtract(data(:,:,1), rgb2gray(data));" you subtract the grey value from the red component. Are you sure this concerns the color yellow?!
Image Analyst
on 23 Feb 2012
0 votes
See my color detection examples:
I detect colors in three different ways.
2 Comments
FIR
on 23 Feb 2012
Image Analyst
on 25 Feb 2012
Yes, I read that. Both brown and whit. I know. It should be easy to modify my apps, in fact the delta E app will work right out of the box. So how did it go? Do you have it working yet? By the way your code in your comment to Jan has nothing whatsoever to do with color segmentation, your comments notwithstanding. It just doesn't - I don't know why you think it should.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!