Measuring similarity between two very similar pictures
This measure really depends on how your images look like. A very basic thing would be the calculate the point-wise difference between both images and summing them up. The smaller this value is, the more equal they are. Possibly, you can perform some Gaussian Smoothing and contrast equalization before. But, that's really depending on the images.