Going through every pixel of an image and finding the color that correlates with it

1 view (last 30 days)
I am trying to write a function that goes through every pixel of an image and find the colors associated with the pixels. I also need to remember the number of pixels associated with the color red.
How do I know how many pixels are in an image and how do I map the [x,y,z] relationship with the color of the pixel??
Thanks

Answers (1)

Walter Roberson
Walter Roberson on 11 Sep 2012
There is no standard about where "red" ends and some other color begins.
You might want to see the file exchange contribution for fuzzy color matching.

Categories

Find more on Convert Image Type 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!