The structural similarity (SSIM) index is a method for measuring the similarity between two images.  http://en.wikipedia.org/wiki/Structural_similarity