how to detect red color
Mostrar comentarios más antiguos
hi, i want to ask how to detect red color for the circlar shape(blue color) in this image. can someone tell me the step? thanks. how to separate the color band? i dont underrstand how to declare the arrays?
http://www.flickr.com/photos/77154085@N06/?saved=1 I want to know how to get the shape circle with white color and the background is in black color. it means the arrow in the circle will be black color but the circle will be white color. the other background is black.how to do blue segmentation to get threshold image?i mean color threshold. can u tell me the step. i need it absolutely. plz help me!
Respuesta aceptada
Más respuestas (4)
Image Analyst
el 21 de Feb. de 2012
1 voto
Rose, see my color segmentation demos: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Looks like you already marked the situation as solved. If you have any additional questions, other than this, just ask again.
9 comentarios
Tulips
el 22 de Feb. de 2012
Image Analyst
el 22 de Feb. de 2012
I think I did that in my color segmentation demos. Did you try to run or adapt any of them? They will give you a much, much more thorough explanation than I can give here. I can tell you that you basically have to do color segmentation to get the blue, then you'll have a binary image. Then you might need to filter out small blue things and keep just the largest.
Tulips
el 23 de Feb. de 2012
Image Analyst
el 23 de Feb. de 2012
But it looks like you already marked this as solved by Sukuchha. Can you tell my why running the delta E program didn't work for you? Are you sure you drew somewhere in the blue area? It should work.
Tulips
el 23 de Feb. de 2012
Tulips
el 23 de Feb. de 2012
Jan
el 23 de Feb. de 2012
Shorter: A = 255 * (A > 50)
Tulips
el 23 de Feb. de 2012
Image Analyst
el 23 de Feb. de 2012
That code you posted is, well, let's say naive and not very robust or flexible, at best. Rose, you don't need to understand the code just to run it. Once you see that it works, you can take it line by line. It's not that hard. I just explained it to a chemist a half hour ago and she totally got it. A smart engineer like you should have no problem with well commented demo code like I always write.
Image Analyst
el 25 de Feb. de 2012
0 votos
Rose, let me ask you again to run my delta E app on your image. I just did right now and it did a nearly perfect job of getting the blue sign. You just need to do a hole fill to fill in some of the little white glints and tears on the sign. Why are you being so reluctant to run it? It's very simple. It just asks you to open your image and draw some part of the image that has the color you want to find. It doesn't even have to be all of the color, just some of the pixels with that color. Then it asks you for a number to say how close to that color do you want to find. It even suggests a good tolerance number for you. Then it finds them all. It can't get much easier. I don't know what else to suggest when something like I've already provided works so perfectly, unlike the other answer you accepted. Again, try it and you'll see.
5 comentarios
Tulips
el 28 de Feb. de 2012
Image Analyst
el 28 de Feb. de 2012
Same answer. Please reread it. My delta E app can detect any color, yellow, purple, orange, chartreuse, Singapore sunset saffron, blanched almond, papaya whip, whatever. http://www.w3.org/TR/css3-color/#svg-color
Tulips
el 29 de Feb. de 2012
Tulips
el 29 de Feb. de 2012
Tulips
el 29 de Feb. de 2012
Elijah Tapiwa Chipato
el 9 de Mayo de 2018
0 votos
How do I detect yellow?
Categorías
Más información sobre Image Arithmetic 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!