特征点匹配器,为每个特征点找到两个最佳匹配,仅当描述符距离比值大于阈值 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> |
构造一个“最佳两个最近邻”匹配器。
- 参数
-
try_use_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( | | ) -> | 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 |
此类的文档是从以下文件生成的