OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::detail::AffineBestOf2NearestMatcher 类参考

特征匹配器,类似于 cv::detail::BestOf2NearestMatcher,该匹配器为每个特征找到两个最佳匹配,并且仅当描述符距离之间的比率大于阈值 match_conf 时才保留最佳匹配。更多...

#include <opencv2/stitching/detail/matchers.hpp>

cv::detail::AffineBestOf2NearestMatcher 的协作图

公共成员函数

 AffineBestOf2NearestMatcher (bool full_affine=false, bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6)
 构造一个“最佳 2 近邻”匹配器,该匹配器期望图像之间存在仿射变换。
 
- 从 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.)
 构造一个“best of 2 nearest”匹配器。
 
void collectGarbage () CV_OVERRIDE
 释放之前分配的任何未使用的内存。
 
- 从 cv::detail::FeaturesMatcher 继承的公共成员函数
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())
 执行图像匹配。
 

保护成员函数

void match (const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo &matches_info) CV_OVERRIDE
 此方法必须实现匹配逻辑,以使包装器 detail::FeaturesMatcher::operator()_ 工作。
 
- 从 cv::detail::BestOf2NearestMatcher 继承的保护成员函数
void match (const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo &matches_info) CV_OVERRIDE
 此方法必须实现匹配逻辑,以使包装器 detail::FeaturesMatcher::operator()_ 工作。
 
- 从 cv::detail::FeaturesMatcher 继承的保护成员函数
 FeaturesMatcher (bool is_thread_safe=false)
 
virtual void match (const std::vector< ImageFeatures > &features, std::vector< MatchesInfo > &pairwise_matches, const cv::UMat &mask=cv::UMat())
 此方法实现了在任意数量的特征之间匹配特征的逻辑。默认情况下,这将检查输入中的每对输入,但是子类可以更改该行为。
 

保护属性

bool full_affine_
 
- 从 cv::detail::BestOf2NearestMatcher 继承的保护属性
Ptr< FeaturesMatcherimpl_
 
double matches_confindece_thresh_
 
int num_matches_thresh1_
 
int num_matches_thresh2_
 
- 从 cv::detail::FeaturesMatcher 继承的保护属性
bool is_thread_safe_
 

附加的继承成员

- 从 cv::detail::BestOf2NearestMatcher 继承的静态公共成员函数
static Ptr< BestOf2NearestMatchercreate (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.)
 

详细描述

特征匹配器,类似于 cv::detail::BestOf2NearestMatcher,该匹配器为每个特征找到两个最佳匹配,并且仅当描述符距离之间的比率大于阈值 match_conf 时才保留最佳匹配。

cv::detail::BestOf2NearestMatcher 不同,此匹配器使用仿射变换(仿射变换估计将放置在 matches_info 中)。

另请参见
cv::detail::FeaturesMatcher cv::detail::BestOf2NearestMatcher

构造函数 & 析构函数文档

◆ 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()

void cv::detail::AffineBestOf2NearestMatcher::match ( const ImageFeatures & features1,
const ImageFeatures & features2,
MatchesInfo & matches_info )
protectedvirtual

此方法必须实现匹配逻辑,以使包装器 detail::FeaturesMatcher::operator()_ 工作。

参数
features1第一张图像的特征
features2第二张图像的特征
matches_info找到的匹配

实现 cv::detail::FeaturesMatcher

成员数据文档

◆ full_affine_

bool cv::detail::AffineBestOf2NearestMatcher::full_affine_
保护

该类的文档是从以下文件生成的