detecting colours
Mostrar comentarios más antiguos
I want to detect both brown and whit colours,can anyone tell how to proceed plz
Respuestas (2)
Jan
el 23 de Feb. de 2012
0 votos
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 comentarios
FIR
el 23 de Feb. de 2012
Jan
el 23 de Feb. de 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
el 23 de Feb. de 2012
FIR
el 23 de Feb. de 2012
Jan
el 25 de Feb. de 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
el 23 de Feb. de 2012
0 votos
See my color detection examples:
I detect colors in three different ways.
2 comentarios
FIR
el 23 de Feb. de 2012
Image Analyst
el 25 de Feb. de 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.
Categorías
Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!