I am trying to analyse due different images and find their similarities. In order to do this, I need to consider the coordinates of the pixels in both images, then select the points in common, i.e. those points with small distance or higher degree of similarity. However, I have some problems to select only those points in common for each of the two images using Mathematica.
EDIT:
img1 = Image[
Import@FileNameJoin[{NotebookDirectory[], "simpson1.jpg"}]];
pixels1 = ImageData[img1]
img2 = Image[
Import@FileNameJoin[{NotebookDirectory[], "simpson2.jpg"}]];
pixels2 = ImageData[img2]
grouping = GroupBy[pixels1, pixels1 - Nearest[pixels2]] ; it takes a bit to run, so I think it is not the right way to group the pixels and measure the similarity
Images used:
What I would expect is a list of coordinates for each image, which are pretty similar in both. Is there any way to do this using Mathematica software? This problem could be also interpreted as "spot the differences", if you prefer.
ImageCorrespondingPoints
? Do you have an example pair of images that you can share? $\endgroup$