🤖
AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は
公式英語版(原文) を参照してください。
#include <opencv2/stitching/detail/matchers.hpp>
|
| | BestOf2NearestRangeMatcher (int range_width=5, bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6, int num_matches_thresh2=6) |
| |
| | 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 |
| | 以前に確保された未使用メモリがあれば解放する。
|
| |
| 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.) |
| |
◆ BestOf2NearestRangeMatcher()
| cv::detail::BestOf2NearestRangeMatcher::BestOf2NearestRangeMatcher |
( |
int | range_width = 5, |
|
|
bool | try_use_gpu = false, |
|
|
float | match_conf = 0.3f, |
|
|
int | num_matches_thresh1 = 6, |
|
|
int | num_matches_thresh2 = 6 ) |
| Python: |
|---|
| cv.detail.BestOf2NearestRangeMatcher( | [, range_width[, try_use_gpu[, match_conf[, num_matches_thresh1[, num_matches_thresh2]]]]] | ) -> | <detail_BestOf2NearestRangeMatcher object> |
◆ match() [1/2]
このメソッドは、ラッパーであるdetail::FeaturesMatcher::operator()_を機能させるために、マッチングのロジックを実装しなければならない。
- 引数
-
| features1 | 1枚目の画像の特徴 |
| features2 | 2枚目の画像の特徴 |
| matches_info | 見つかったマッチ |
cv::detail::BestOf2NearestMatcher から再実装。
◆ match() [2/2]
このメソッドは、任意の個数の特徴間でマッチングを行うロジックを実装する。デフォルトでは入力中のすべてのペアをチェックするが、その挙動はサブクラスで変更できる。
- 引数
-
| features | 画像特徴のベクトル |
| pairwise_matches | 見つかったマッチ |
| mask | (省略可能) どの画像ペアをマッチングすべきかを示すマスク |
cv::detail::FeaturesMatcher から再実装。
◆ range_width_
| int cv::detail::BestOf2NearestRangeMatcher::range_width_ |
|
protected |
このクラス詳解は次のファイルから抽出されました: