Friday, May 3, 2013

OpenCV: SURF Feature matching

  1. Load two images
  2. do SURF feature extraction
  3. Using Flann matching to match the keypoints
  4. Identify good matches
  5. find the object in the scene image

2 comments:

  1. I'm getting an error

    Brute Force Matching Time (senconds): 1.9444e-05
    Flann Based Matching Time (senconds): 3.7569e-05
    OpenCV Error: Assertion failed (npoints >= 0 && points2.checkVector(2) == npoints && points1.type() == points2.type()) in findHomography, file /home/vardhan/Downloads/OpenCV/opencv-2.4.9/modules/calib3d/src/fundam.cpp, line 1074
    terminate called after throwing an instance of 'cv::Exception'
    what(): /home/vardhan/Downloads/OpenCV/opencv-2.4.9/modules/calib3d/src/fundam.cpp:1074: error: (-215) npoints >= 0 && points2.checkVector(2) == npoints && points1.type() == points2.type() in function findHomography

    ReplyDelete
  2. I'm getting the same error as vardhan using windows/ms visual studio

    ReplyDelete