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

各特徴について2つの最良マッチを見つけ、記述子距離の比がしきい値 match_conf より大きい場合にのみ最良の1つを残す特徴マッチャー。続きを読む...

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

Collaboration diagram for 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_confidence_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())
 画像のマッチングを実行する。
 

静的公開メンバ関数

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_confidence_thresh=3.)
 

限定公開メンバ関数

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())
 このメソッドは、任意の数の特徴間でマッチングを行うロジックを実装する。デフォルトでは入力中のすべての入力ペアをチェックするが、この挙動はサブクラスで変更できる。
 

限定公開変数類

Ptr< FeaturesMatcherimpl_
 
double matches_confidence_thresh_
 
int num_matches_thresh1_
 
int num_matches_thresh2_
 
- Protected Attributes inherited from cv::detail::FeaturesMatcher
bool is_thread_safe_
 

詳細説明

各特徴について2つの最良マッチを見つけ、記述子距離の比がしきい値 match_conf より大きい場合にのみ最良の1つを残す特徴マッチャー。

参照
detail::FeaturesMatcher

構築子と解体子の詳解

◆ BestOf2NearestMatcher()

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_confidence_thresh = 3. )
Python:
cv.detail.BestOf2NearestMatcher([, try_use_gpu[, match_conf[, num_matches_thresh1[, num_matches_thresh2[, matches_confidence_thresh]]]]]) -> <detail_BestOf2NearestMatcher object>

「最近傍2点のうちの最良」マッチャーを構築する。

引数
try_use_gpuGPUを使おうとするかどうか
match_confマッチ距離比のしきい値
num_matches_thresh1インライア分類ステップで使われる2D射影変換の推定に必要な、マッチの最小数
num_matches_thresh2インライアでの2D射影変換の再推定に必要な、マッチの最小数
matches_confidence_threshマッチを考慮に入れるためのマッチング信頼度のしきい値。このしきい値は実験的に決定され、デフォルトでは3に設定されている。

メンバ関数詳解

◆ collectGarbage()

void cv::detail::BestOf2NearestMatcher::collectGarbage ( )
virtual
Python:
cv.detail.BestOf2NearestMatcher.collectGarbage() -> None

未使用のメモリが割り当てられている場合は解放する。

cv::detail::FeaturesMatcher から再実装。

◆ create()

static Ptr< BestOf2NearestMatcher > cv::detail::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. )
static
Python:
cv.detail.BestOf2NearestMatcher.create([, try_use_gpu[, match_conf[, num_matches_thresh1[, num_matches_thresh2[, matches_confidence_thresh]]]]]) -> retval
cv.detail.BestOf2NearestMatcher_create([, try_use_gpu[, match_conf[, num_matches_thresh1[, num_matches_thresh2[, matches_confidence_thresh]]]]]) -> retval

◆ match()

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

このメソッドは、ラッパーであるdetail::FeaturesMatcher::operator()_を機能させるために、マッチングのロジックを実装しなければならない。

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

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

cv::detail::BestOf2NearestRangeMatcher で再実装。

メンバ変数詳解

◆ impl_

Ptr<FeaturesMatcher> cv::detail::BestOf2NearestMatcher::impl_
protected

◆ matches_confidence_thresh_

double cv::detail::BestOf2NearestMatcher::matches_confidence_thresh_
protected

◆ num_matches_thresh1_

int cv::detail::BestOf2NearestMatcher::num_matches_thresh1_
protected

◆ num_matches_thresh2_

int cv::detail::BestOf2NearestMatcher::num_matches_thresh2_
protected

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