I have two images (of a few thousand), lets call them image A and image B. I know that they either go side by side, AB or BA, but how can I verify this using c# code?
Some of the images, when put side by side, will match up. Lines will align, so will circles and everything else. Some will not match at all. I would like a numerical approximation as to how well they do or do not match. If one pixel on the right column of the left image is red, and on the same row a red is in the first column of the right image, then they match. Same test for Blue and Green. Since there might be variations, I would settle for a probability of matching. I could then visually exam the closer ones first.
I have tried to compare the colors, of the last column of the left image with the first column of the right image, but there is no significant difference in the values that I get. I was hoping that the red value on one side less the red value on the other might zero out, and the same with the green and the blue. This did not work out that well.
Any ideas? I have tried searching for a result, but no one seems to have tried this.
Maybe this will help. Take any image 10,000 pixels by 10,000 pixels, and slice it into 100 smaller images 1000 x 1000 pixels. What is the best way to check if any image, lets say B, belongs on one side of another image, lets say A? Without involving any form of rotation of the images, and knowing that A <> B, how do we calculate the chance that B is on A's right side, or top, bottom or left side in the original image?