There is a similar question asked here:
Library to compare images
This is what the links post says
You could check out the Correlation command from the LEADTOOLS Imaging SDK.
Here is what the Image processing command does:
This command compares the correlation image (or part of the correlation image) with all the areas of the same dimensions in the image to be searched and finds those portions that match according to the measure of correlation. Correlation is a measure of association (resemblance) between two images. It varies from 0 (zero resemblance) to 100 (perfect resemblance). This command updates the Points property (or the points parameter of the Constructor) with the point of origin for those areas of the image to be searched where the resemblance with the correlation image (or part of the correlation image) is greater than the threshold. The correlation image dimensions must be less than or equal to the dimensions of the image to be searched.
There are also a lot of other image processing commands in the SDK that you can use to help in your image comparison. A sample c# project was written and posted on the LEADTOOLS Blog. You can download the sample project here:
LEADTOOLS Compare Images Blog Post
Here are some screenshots showing what this demo does and looks like:
Mostly Similar Images

Identical Images

Mostly Different Images

Disclaimer : I am an employee of this library.