OpenCV - Object matching using SURF descriptors and BruteForceMatcher

前端 未结 3 784
旧巷少年郎
旧巷少年郎 2020-12-12 22:56

I have a question about objects matching with OpenCV. I\'m useing SURF algorithm implemented in opencv 2.3 to first detect features on each image, and then extracting the de

相关标签:
3条回答
  • 2020-12-12 23:38

    The problem was in using Brute Force Matcher only, I found methods to obtain a set of good matches between two views at "OpenCV 2 Computer Vision Application Programming Cookbook"

    Ch9: Matching images using random sample consensus

    They are using K-Nearest Neighbor and RANSAC

    And thanks

    0 讨论(0)
  • 2020-12-12 23:38

    For removing outliers RANSAC + homography is a good method when comparing two planar images.

    Homography is the model that RANSAC will try to use to compare points from both images and it will find the best set of points that better fit the projection model of the homography (the transformation from one plane to another).

    cv::findHomography(srcPoints,dstPoints, RANSAC, status);
    

    The function above will return an array status that has a 1 for indices considered inliers and 0 for indices considered outliers, so you can remove outliers by checking this status array.

    0 讨论(0)
  • 2020-12-12 23:39

    You need to modify your Hessian, 2500 is too much. Try 50. When you use a big Hessian, the result is a lot of keypoints, resulting some unnecessary. Another information about SURF is that your marker need to be more rich, with more details.

    0 讨论(0)
提交回复
热议问题