Reputation: 215
I am wanting to be able to check to see if two images appear to be the same, within a certain threshold.
These two images are the same to the eye, but one has slightly different colors. I have tried the following example:
http://www.vb-helper.com/howto_net_image_compare_threshold.html
Unfortunately, it only seems to detect when the images are identical. How can I determine if the images are the same within a certain threshold, with VB.NET?
Upvotes: 3
Views: 1455
Reputation: 26843
This is the correlation between the two images. To get a value from 0 to 1, first calculate the correlation of an image with itself to see what the best possible value is, then do the correlation of Image 1 with Image 2 and divide by the best possible value.
Upvotes: 0
Reputation: 15813
Then then see if the two smaller images are duplicates. If so, the originals must be pretty close.
Upvotes: 4