类AffineBestOf2NearestMatcher学习笔记

来源:互联网 发布:云计算技术与应用竞赛 编辑:程序博客网 时间:2024/06/05 08:08

类AffineBestOf2NearestMatcher

Module:
Features Finding and Images Matching
模型:
特征提取与图像匹配:

类:
cv::detail::AffineBestOf2NearestMatcher
这个特征点匹配器类似于用于找到2个图像的最佳匹配点的cv::detail::BestOf2NearestMatcher,并且当描述符的距离间比率大于阈值match_conf时,仅留下最好的一对。

#include "matchers.hpp"

构造函数:
AffineBestOf2NearestMatcher()
cv::detail::AffineBestOf2NearestMatcher::AffineBestOf2NearestMatcher
(
bool full_affine = false,
bool try_use_gpu = false,
float match_conf = 0.3f,
int num_matches_thresh1 = 6
)
函数描述:构建一个 用于两幅图的仿射变换的最佳匹配点匹配器

full_affine 表示是使用6个自由度的仿射变换还是4个自由度的仿射变换(平移、等比缩放、旋转)
try_use_gpu 是否尝试使用GPU
match_conf 距离比例法制
num_matches_thresh1 计算2D仿射变换所需要匹配点的最小数量(在内分类阶段 in the inliers classification step)

成员函数:
match()
void cv::detail::AffineBestOf2NearestMatcher::match
(
const ImageFeatures & features1,
const ImageFeatures & features2,
MatchesInfo & matches_info
)
函数描述:这个方法必须实习匹配逻辑以便让(图片)弯曲器(wrappers)的
detail::FeaturesMatcher::operator()_
工作
features1 第1幅图的特征点数组
features2 第2幅图的特征点数组
matches_info 找到的匹配点对

重载自cv::detail::BestOf2NearestMatcher

笔记:找到最佳匹配点放到matches_info中

成员变量:
full_affine_

bool cv::detail::AffineBestOf2NearestMatcher::full_affine_

0 0
原创粉丝点击