特征匹配器,为每个特征找到两个最佳匹配项,并且仅当描述符距离之间的比率大于阈值 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 object> |
构造一个“best of 2 nearest”匹配器。
- 参数
-
| try_use_gpu | 应尝试使用 GPU 还是不使用 GPU |
| match_conf | 匹配距离比率阈值 |
| num_matches_thresh1 | 在内点分类步骤中使用的 2D 投影变换估计所需的最小匹配数 |
| num_matches_thresh2 | 内点上的 2D 投影变换重新估计所需的最小匹配数 |
| matches_confindece_thresh | 将匹配考虑在内的匹配置信度阈值。 该阈值是通过实验确定的,默认设置为 3。 |
◆ collectGarbage()
| void cv::detail::BestOf2NearestMatcher::collectGarbage |
( |
| ) |
|
|
virtual |
| Python |
|---|
| cv.detail.BestOf2NearestMatcher.collectGarbage( | | ) -> | 无 |
◆ 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_ |
|
保护 |
◆ num_matches_thresh1_
| int cv::detail::BestOf2NearestMatcher::num_matches_thresh1_ |
|
保护 |
◆ num_matches_thresh2_
| int cv::detail::BestOf2NearestMatcher::num_matches_thresh2_ |
|
保护 |
该类的文档是从以下文件生成的