Boris
Boris

Reputation: 8931

How to use SIFT for image comparison

I recently stumbled upon a SIFT implementation for C#. I thought it would be great fun to play around with it, so that's what I did.

The implementation generates a set of "interest points" for any given image. How would I actually use this information to compare two images?

What I'm after is a single "value of similarity". Can that be generated out of the two sets of interest points of the two images?

Upvotes: 8

Views: 3747

Answers (2)

mrgloom
mrgloom

Reputation: 21622

You can use number of matches as similarity metric.

Upvotes: 0

Jav_Rock
Jav_Rock

Reputation: 22245

You need to run SIFT on both images so you get interest points (lets call them Keypoints) in both images.

After that you need to find matches between keypoints in both images. There are algorithms implemented for that purpose in OpenCV.

The value of similarity can be computed out of the number of matches. You can consider that if you get more than 4 points the images are the same, and you can also calculate the relative rotation between them.

Upvotes: 7

Related Questions