Exact Average Color of an Image
Posted: 2007-06-12T13:20:05-07:00
Hi,
I'm dealing with fairly large images (wallpaper size), and I'm looking for a way to find an exact average color of the image represented as a single number (ie, to the 20th decimal point- very, very accurate).
I'm considering stepping through every pixel of the image, averaging all the colors, however as the images are quite large, this would take a long time.
The purpose of this is to establish a "fingerprint" for each image, so I can compare it to thousands of other fingerprints, and return other images that are within a certain threshold (so many decimals apart from each other). In other words, I'm looking to establish a system to quickly compare thousands of images together, and find ones that are very similar, using some kind of decimal as a key. I need to keep it a fuzzy match, so there can be slight variations in the images (brightness adjustments, small text copyright notices at the bottom, etc), but still return as a match. The number also needs to stay relatively close between different sizes of the same image, so if an image is resized, it'll still return a match.
Aside from average colors question I had above, can anyone think of a better way, or does that seem to be the best?
Thank you, and I look forward to you responses.
I'm dealing with fairly large images (wallpaper size), and I'm looking for a way to find an exact average color of the image represented as a single number (ie, to the 20th decimal point- very, very accurate).
I'm considering stepping through every pixel of the image, averaging all the colors, however as the images are quite large, this would take a long time.
The purpose of this is to establish a "fingerprint" for each image, so I can compare it to thousands of other fingerprints, and return other images that are within a certain threshold (so many decimals apart from each other). In other words, I'm looking to establish a system to quickly compare thousands of images together, and find ones that are very similar, using some kind of decimal as a key. I need to keep it a fuzzy match, so there can be slight variations in the images (brightness adjustments, small text copyright notices at the bottom, etc), but still return as a match. The number also needs to stay relatively close between different sizes of the same image, so if an image is resized, it'll still return a match.
Aside from average colors question I had above, can anyone think of a better way, or does that seem to be the best?
Thank you, and I look forward to you responses.