Features matcher similar to
cv::detail::BestOf2NearestMatcher
which finds two best matches for each feature and leaves the best one only if the ratio between descriptor distances is greater than the threshold match_conf.
[詳解]
#include <matchers.hpp>
cv::detail::BestOf2NearestMatcherを継承しています。
|  | 
| bool | full_affine_ | 
|  | 
| int | num_matches_thresh1_ | 
|  | 
| int | num_matches_thresh2_ | 
|  | 
| Ptr<
FeaturesMatcher
> | impl_ | 
|  | 
| bool | is_thread_safe_ | 
|  | 
以下に似た特徴量マッチングツールcv::detail::BestOf2NearestMatcherこれは,各特徴量に対して2つのベストマッチを見つけ,ディスクリプタ間の距離の比が閾値 match_conf よりも大きい場合にのみ,ベストマッチを残すものです.
とは異なりcv::detail::BestOf2NearestMatcherこの Matcherは,アフィン変換を利用します(アフィン変換の推定値は matches_info に格納されます).
- 参照
- 
cv::detail::FeaturesMatcher
cv::detail::BestOf2NearestMatcher
 
◆
AffineBestOf2NearestMatcher()
| 
| CV_WRAP cv::detail::AffineBestOf2NearestMatcher::AffineBestOf2NearestMatcher | ( | bool | full_affine
= false, |  
|  |  | bool | try_use_gpu
= false, |  
|  |  | float | match_conf
= 0.3f, |  
|  |  | int | num_matches_thresh1
= 6 |  
|  | ) |  |  |  | inline | 
 
画像間のアフィン変換を想定した「best of 2 nearest」マッチャーを構築します.
- 引数
- 
| 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::BestOf2NearestMatcherを再実装します。
 
 
このクラス詳解は次のファイルから抽出されました: