I have an image (PNG or JPG) inside which there is at least one pixel of a certain RGB color I know in advance. I want to find the pixel(s) of that color
For example, I may have image.jpg, inside which I know some pixel has the RGB value 255,100,200. I want a program that will give me the list of pixels (if any) of that color in the image.
Anyone know of a tool to help me with that?
Thanks!
Best Answer
Install imagemagick. You can then create a list of every pixel in an image using something like:
The text file will contain every pixel in your image, 1 pixel per line:
If you want to find a single color, try:
to dump a file of every pixel containing the color
E6E8E5
. You can search for the rgb part of the line too, if you'd rather.