Features matcher which finds two best matches for each feature and leaves the best one only if the ratio between descriptor distances is greater than the threshold match_conf.
More...
#include <opencv2/stitching/detail/matchers.hpp>
Features matcher which finds two best matches for each feature and leaves the best one only if the ratio between descriptor distances is greater than the threshold match_conf.
- See also
- detail::FeaturesMatcher
◆ BestOf2NearestMatcher()
cv::detail::BestOf2NearestMatcher::BestOf2NearestMatcher |
( |
bool |
try_use_gpu = false , |
|
|
float |
match_conf = 0.3f , |
|
|
int |
num_matches_thresh1 = 6 , |
|
|
int |
num_matches_thresh2 = 6 |
|
) |
| |
Constructs a "best of 2 nearest" matcher.
- Parameters
-
try_use_gpu | Should try to use GPU or not |
match_conf | Match distances ration threshold |
num_matches_thresh1 | Minimum number of matches required for the 2D projective transform estimation used in the inliers classification step |
num_matches_thresh2 | Minimum number of matches required for the 2D projective transform re-estimation on inliers |
◆ collectGarbage()
void cv::detail::BestOf2NearestMatcher::collectGarbage |
( |
| ) |
|
|
virtual |
Python: |
---|
| cv.detail.BestOf2NearestMatcher.collectGarbage( | | ) -> | None |
◆ create()
static Ptr<BestOf2NearestMatcher> cv::detail::BestOf2NearestMatcher::create |
( |
bool |
try_use_gpu = false , |
|
|
float |
match_conf = 0.3f , |
|
|
int |
num_matches_thresh1 = 6 , |
|
|
int |
num_matches_thresh2 = 6 |
|
) |
| |
|
static |
Python: |
---|
| cv.detail.BestOf2NearestMatcher.create( | [, try_use_gpu[, match_conf[, num_matches_thresh1[, num_matches_thresh2]]]] | ) -> | retval |
| cv.detail.BestOf2NearestMatcher_create( | [, try_use_gpu[, match_conf[, num_matches_thresh1[, num_matches_thresh2]]]] | ) -> | retval |
◆ match()
◆ impl_
◆ num_matches_thresh1_
int cv::detail::BestOf2NearestMatcher::num_matches_thresh1_ |
|
protected |
◆ num_matches_thresh2_
int cv::detail::BestOf2NearestMatcher::num_matches_thresh2_ |
|
protected |
The documentation for this class was generated from the following file: