image-matching-models icon indicating copy to clipboard operation
image-matching-models copied to clipboard

Get a score like result

Open simonhard opened this issue 1 year ago • 1 comments

Hey, thanks for all your great work regarding VPR/Image matching etc.

I want to compare two images and get a result, how much image 1 matches 2. Any kind of metric.

I thought about something like

total_possible_keypoints = min(len(result['kpts0']), len(result['kpts1']))
matching_score = (num_inliers / total_possible_keypoints) * 100

Or ensuring the homography matrix is close to the identity matrix or the number of inliers surpasses a certain threshold...

Any hints are helpful. Thanks :)

simonhard avatar Aug 15 '24 11:08 simonhard

Usually we rely on the number of inliers (num_inliers) to estimate if two images match or not, which is also what we did in the paper. The only thing to take into account is that the number of inliers is dependent on the method and not absolute (e.g. RoMa produces a lot of inliers while SIFT-LG produces few)

gmberton avatar Aug 22 '24 11:08 gmberton