Search code examples
opencvcomputer-visionsiftsurf

OpenCV matching images


I am trying to use OpenCV to match images like these:

img1 img2 http://img849.imageshack.us/img849/8177/clearz.jpg

And I need to find the best intersection of them.

I tried using SURFDetector and matching using BruteforceMatcher, but finds descriptors not equal.

Tell me please the correct way to solve problem.


Solution

  • Did you have a look to this code example? Here you can see how to find an object using SURF descriptors. Go to main(), and check the code step by step. You can try it with your images and it should work. Other approaches use SIFT and FAST detectors.

    Good luck. If you don't get results keep trying, at the beggining it is hard.