Sift Extraction - opencv

Filipe picture Filipe · Jul 7, 2012 · Viewed 10.5k times · Source

I'm trying to get started working with sift feature extraction using (C++) OpenCv. I need to extract features using SIFT, match them between the original image (e.g. a book) and a scene, and after that calculate the camera pose.

So far I have found this algorithm using SURF. Does anyone know a base code from which I can get started, or maybe a way to convert the algorithm in the link from SURF to SIFT?

Thanks in advance.

EDIT: Ok, I worked out a solution for the sift problem. Now I'm trying to figure the camera pose. I'm trying to use: solvePnP, can anyone help me with an example?

Answer

Adi Shavit picture Adi Shavit · Jul 7, 2012

Check out the feature2d tutorial section of the new OpenCV docs website. There tutorials with code showing:

  1. Feature detection with e.g. SURF
  2. Feature Description
  3. Feature Matching