Matching ORB Features with a threshold

后端 未结 1 1007
庸人自扰
庸人自扰 2021-01-03 15:00

My project is herbs recognition based on android. I use ORB to get keypoints, features, and matching the features.

I want to use this algorithm:

  1. I use
相关标签:
1条回答
  • I don`t know either. Distance is measure of the feature point similarity, less is better. The original ORB paper (fig. 5, below) shows distribution of the distances for good and bad matches. One can surely says that "good" distance threshold would be around 64. Distance distribution for ORB

    So more correct is :

    double dist_th = 64;
    for( int i = 0; i < descriptors_object.rows; i++ )
    { if( matches[i].distance < dist_th )
     { good_matches.push_back( matches[i]); }
    } 
    

    And then you still have to use RANSAC to filter inconsistent matches. So, the simplest solution is to do match you query image with all 4 database images.

    But I`d advise you to use some classifier, not just matching. See this guy approach (it works, I know him) - http://cmp.felk.cvut.cz/~sulcmila/

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