The situation is unique from all that I have already managed to find, and consists in the following: if I took a photo with two similar images, I would like to emphasize the distinctive features of the two images. For example, the following two halves of children determine the difference:


Differences in images will be missing / bits and / or color changes added, as well as the type of differences that are easily detected from the source image files without doing anything more smart than comparing in half. However, the fact that they are subject to fluctuations in light and inaccurate photos, I will need a much softer / smarter algorithm.
As you can see, the images will not necessarily match perfectly if superimposed.
This question is labeled as agnostic, as I expect the answers to point to the appropriate algorithms, however I would also be interested in current implementations if they exist, especially in Java, Ruby or C.
source share