How to use flann based matcher, or generally flann in opencv?

前端 未结 2 552
失恋的感觉
失恋的感觉 2020-12-17 05:51

http://opencv.willowgarage.com/documentation/cpp/features2d_common_interfaces_of_descriptor_matchers.html#flannbasedmatcher

Please can somebody show me sample code o

2条回答
  •  醉梦人生
    2020-12-17 06:39

    To reduce the number of false positives, you can compare the first most nearest neighbor to the second most nearest neighbor by taking the ratio of there distances. distance(query,mostnearestneighbor)/distance(query,secondnearestneighbor) < T, the smaller the ratio is, the higher the distance of the second nearest neighbor to the query descriptor. This thus is a translation of high distinctiveness. Used in many computer vision papers that envision registration.

提交回复
热议问题