OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
cv::detail::AffineBestOf2NearestMatcher クラス

cv::detail::BestOf2NearestMatcherに似た特徴マッチャで、各特徴について上位2件のマッチを見つけ、記述子距離の比がしきい値match_confより大きい場合にのみ最良の1件を残す。詳細...

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

Collaboration diagram for cv::detail::AffineBestOf2NearestMatcher:

公開メンバ関数

 AffineBestOf2NearestMatcher (bool full_affine=false, bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6)
 画像間のアフィン変換を想定した「2-nearestのbest」マッチャを構築する。
 
- Public Member Functions inherited from 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.)
 「2-nearestのbest」マッチャを構築する。
 
void collectGarbage () CV_OVERRIDE
 以前に確保された未使用メモリがあれば解放する。
 
- Public Member Functions inherited from 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()_を機能させるために、マッチングのロジックを実装しなければならない。
 
- Protected Member Functions inherited from cv::detail::BestOf2NearestMatcher
void match (const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo &matches_info) CV_OVERRIDE
 このメソッドは、ラッパーであるdetail::FeaturesMatcher::operator()_を機能させるために、マッチングのロジックを実装しなければならない。
 
- Protected Member Functions inherited from 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_
 
- Protected Attributes inherited from cv::detail::BestOf2NearestMatcher
Ptr< FeaturesMatcherimpl_
 
double matches_confindece_thresh_
 
int num_matches_thresh1_
 
int num_matches_thresh2_
 
- Protected Attributes inherited from cv::detail::FeaturesMatcher
bool is_thread_safe_
 

Additional Inherited Members

- Static Public Member Functions inherited from 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に似た特徴マッチャで、各特徴について上位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_affine6自由度の完全なアフィン変換を使うか、回転・並進・一様スケーリングのみを用いた4自由度の縮約変換を使うか
try_use_gpuGPUを使おうとするかどうか
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()_を機能させるために、マッチングのロジックを実装しなければならない。

引数
features11枚目の画像の特徴
features22枚目の画像の特徴
matches_info見つかったマッチ

cv::detail::FeaturesMatcherを実装する。

メンバ変数詳解

◆ full_affine_

bool cv::detail::AffineBestOf2NearestMatcher::full_affine_
protected

このクラス詳解は次のファイルから抽出されました: