.net – Image Comparison for find percentage of similarity between images

image processingnet

I want to compare set of images with the given template/ideal image. All images are similar to template image, I want to compare the images and find out the percentage of similarity between the template & rest of images.

Is there any open source or third party software for doing it.

I want to mainly use C# .Net as the technology.

Best Answer

OpenCV is a competent image algorithm library. I'd recommend EmGuCV as a C#-wrapper: http://www.emgu.com/

Comparing images are quite tricky and you should be more specific in your question to get a good and specific answer. I'd guess you want to ignore things as different brightness levels, contrast and translation...

One simple way to look for an image within an image (if no rotation is applied) is to use the small image as a kernel and use convolution to get the best match(es) in the image. Threshold or apply a percentage scale (I recommend a non-linear) to the response and you have a decent filter.

Related Topic