cv::detail::BestOf2NearestMatcherに似た特徴マッチャで、各特徴について上位2件のマッチを見つけ、記述子距離の比がしきい値match_confより大きい場合にのみ最良の1件を残す。詳細...
#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-nearestのbest」マッチャを構築する。
|
| |
| | BestOf2NearestMatcher (bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6, int num_matches_thresh2=6, double matches_confidence_thresh=3.) |
| | 「2-nearestのbest」マッチャを構築する。
|
| |
| 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_confidence_thresh=3.) |
| |
cv::detail::BestOf2NearestMatcherに似た特徴マッチャで、各特徴について上位2件のマッチを見つけ、記述子距離の比がしきい値match_confより大きい場合にのみ最良の1件を残す。
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 object> |
画像間のアフィン変換を想定した「2-nearestのbest」マッチャを構築する。
- 引数
-
| full_affine | 6自由度の完全なアフィン変換を使うか、回転・並進・一様スケーリングのみを用いた4自由度の縮約変換を使うか |
| try_use_gpu | GPUを使おうとするかどうか |
| match_conf | マッチ距離比のしきい値 |
| num_matches_thresh1 | インライア分類ステップで使用される2Dアフィン変換推定に必要な最小マッチ数 |
- 参照
- cv::estimateAffine2D cv::estimateAffinePartial2D
◆ match()
このメソッドは、ラッパーであるdetail::FeaturesMatcher::operator()_を機能させるために、マッチングのロジックを実装しなければならない。
- 引数
-
| features1 | 1枚目の画像の特徴 |
| features2 | 2枚目の画像の特徴 |
| matches_info | 見つかったマッチ |
cv::detail::FeaturesMatcherを実装する。
◆ full_affine_
| bool cv::detail::AffineBestOf2NearestMatcher::full_affine_ |
|
protected |
このクラス詳解は次のファイルから抽出されました: