特征匹配器,为每个特征找到两个最佳匹配项,并且只有当描述符距离之间的比率大于阈值 match_conf 时才保留最佳匹配项。更多…
#include <opencv2/stitching/detail/matchers.hpp>
|
static Ptr< BestOf2NearestMatcher > | create (bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6, int num_matches_thresh2=6, double matches_confindece_thresh=3.) |
|
特征匹配器,为每个特征找到两个最佳匹配项,并且只有当描述符距离之间的比率大于阈值 match_conf 时才保留最佳匹配项。
- 另请参见
- 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, |
|
|
double | matches_confindece_thresh = 3. ) |
Python |
---|
| cv.detail.BestOf2NearestMatcher( | [, try_use_gpu[, match_conf[, num_matches_thresh1[, num_matches_thresh2[, matches_confindece_thresh]]]]] | ) -> | <detail_BestOf2NearestMatcher 对象> |
构造“最佳两个最近邻”匹配器。
- 参数
-
try_use_gpu | 是否尝试使用GPU |
match_conf | 匹配距离比率阈值 |
num_matches_thresh1 | 在内点分类步骤中使用的二维投影变换估计所需的最小匹配数 |
num_matches_thresh2 | 在内点上重新估计二维投影变换所需的最小匹配数 |
matches_confindece_thresh | 要考虑匹配的匹配置信度阈值。该阈值是通过实验确定的,默认为 3。 |
◆ 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, |
|
|
double | matches_confindece_thresh = 3. ) |
|
static |
Python |
---|
| cv.detail.BestOf2NearestMatcher.create( | [, try_use_gpu[, match_conf[, num_matches_thresh1[, num_matches_thresh2[, matches_confindece_thresh]]]]] | ) -> | retval |
| cv.detail.BestOf2NearestMatcher_create( | [, try_use_gpu[, match_conf[, num_matches_thresh1[, num_matches_thresh2[, matches_confindece_thresh]]]]] | ) -> | retval |
◆ match()
◆ impl_
◆ matches_confindece_thresh_
double cv::detail::BestOf2NearestMatcher::matches_confindece_thresh_ |
|
protected |
◆ num_matches_thresh1_
int cv::detail::BestOf2NearestMatcher::num_matches_thresh1_ |
|
protected |
◆ num_matches_thresh2_
int cv::detail::BestOf2NearestMatcher::num_matches_thresh2_ |
|
protected |
此类的文档是从以下文件生成的: