I am using an imagesearch class in my project that finds a smaller image within a larger image. The class is written in C#. The class works, except it has to be almost an exact match for it to work.
I need someone to change it so that it can verify that it is a match based on a percentage. As it stands right now it pretty much has to be a 100% match to come back as a positive match. So that doesn't work well when some images lose quality or have minor differences.
I was thinking a percentage out of 100 could used, and added as a parameter on the class. So I can input what percentage of a match is good enough to return a positive match.
A real life example: I am trying to match two images to see if the larger image contains the smaller image I know in advance that the images could be slightly off or the smaller image could have a loss of quality. So I change the parameter for the difference in the function to 90% and it will return a match if atleast 90% of the image is a match.
I have attached the class to the project for review.
There is two functions that return values to the user in it in case you were wondering. One returns a boolean and one returns a point. They are the same fuction except for what they return. I use each one for different scenarios.