特徵匹配器,類似於 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_ |
|
保護 |
該類的文件是從以下檔案生成的