特征匹配器,类似于 cv::detail::BestOf2NearestMatcher,该匹配器为每个特征找到两个最佳匹配,并且仅当描述符距离之间的比率大于阈值 match_conf 时才保留最佳匹配。更多...
#include <opencv2/stitching/detail/matchers.hpp>
|
| | AffineBestOf2NearestMatcher (bool full_affine=false, bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6) |
| | 构造一个“最佳 2 近邻”匹配器,该匹配器期望图像之间存在仿射变换。
|
| |
| | 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.) |
| | 构造一个“best of 2 nearest”匹配器。
|
| |
| void | collectGarbage () CV_OVERRIDE |
| | 释放之前分配的任何未使用的内存。
|
| |
| virtual | ~FeaturesMatcher () |
| |
| bool | isThreadSafe () const |
| |
| void | operator() (const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo &matches_info) |
| |
| void | operator() (const std::vector< ImageFeatures > &features, std::vector< MatchesInfo > &pairwise_matches, const cv::UMat &mask=cv::UMat()) |
| | 执行图像匹配。
|
| |
|
| 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.) |
| |
◆ AffineBestOf2NearestMatcher()
| cv::detail::AffineBestOf2NearestMatcher::AffineBestOf2NearestMatcher |
( |
bool | full_affine = false, |
|
|
bool | try_use_gpu = false, |
|
|
float | match_conf = 0.3f, |
|
|
int | num_matches_thresh1 = 6 ) |
|
inline |
| Python |
|---|
| cv.detail.AffineBestOf2NearestMatcher( | [, full_affine[, try_use_gpu[, match_conf[, num_matches_thresh1]]]] | ) -> | <detail_AffineBestOf2NearestMatcher 对象> |
构造一个“最佳 2 近邻”匹配器,该匹配器期望图像之间存在仿射变换。
- 参数
-
| full_affine | 是否使用具有 6 个自由度的完整仿射变换,或使用仅具有旋转,平移和均匀缩放的 4 个自由度的简化变换 |
| try_use_gpu | 应尝试使用 GPU 还是不使用 GPU |
| match_conf | 匹配距离比率阈值 |
| num_matches_thresh1 | 在内点分类步骤中使用的 2D 仿射变换估计所需的最小匹配数 |
- 另请参见
- cv::estimateAffine2D cv::estimateAffinePartial2D
◆ match()
此方法必须实现匹配逻辑,以使包装器 detail::FeaturesMatcher::operator()_ 工作。
- 参数
-
| features1 | 第一张图像的特征 |
| features2 | 第二张图像的特征 |
| matches_info | 找到的匹配 |
实现 cv::detail::FeaturesMatcher。
◆ full_affine_
| bool cv::detail::AffineBestOf2NearestMatcher::full_affine_ |
|
保护 |
该类的文档是从以下文件生成的