I'm trying to compare images to each other to find out whether they are different. First I tried to make a Pearson correleation of the RGB values, which works also quite good unless the pictures are a litte bit shifted. So if a have a 100% identical images but one is a little bit moved, I get a bad correlation value.
Any suggestions for a better algorithm?
BTW, I'm talking about to compare thousand of imgages...
Edit: Here is an example of my pictures (microscopic):
im1: http://www.freeimagehosting.net/uploads/c603225337.jpg
im2: http://www.freeimagehosting.net/uploads/9b78f22f42.jpg
im3: http://www.freeimagehosting.net/uploads/854dcd81eb.jpg
im1 and im2 are the same but a little bit shifted/cutted, im3 should be recognized as completly different...
Edit: Problem is solved with the suggestions of Peter Hansen! Works very well! Thanks to all answers! Some results can be found here http://www.file-upload.net/download-2054026/image%5Fcomparision.pdf.html