I want to search for similar areas in two images, but I don't know what works best. The areas are not scaled or transformed in any way, but may appear anywhere in both images (I want to know where). There is other stuff around them.
This is an example of what i want:
How can I do this?
segmentate image
To obtain bound rectangles/polygon/mask of found areas
per each region compute
find matches
So compare each regions between images. Handle data from #2 as single dataset and compute the similarity between compared regions based on one from the following:
for specific images you can create own custom comparison
to improve precision
You can divide each region to few subregions and compute #2 also for them to have more robust dataset but beware of the rotations.
Also if you segmentation is based on color homogenity coefficient then you can also include that to the dataset
rotated images
For that you need use features independend on rotation like:
Or find base feature/edge and rotate one image to match the other one position ...
polygons
For polygon images you can vectorise image back to vector form and then use any polygon comparison algorithm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With