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_
保護

該類的文件是從以下檔案生成的