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を継承しています。
|
| CV_WRAP | AffineBestOf2NearestMatcher (bool full_affine=false, bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6) |
| | Constructs a "best of 2 nearest" matcher that expects affine transformation between images [詳解]
|
| |
| CV_WRAP | BestOf2NearestMatcher (bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6, int num_matches_thresh2=6) |
| | Constructs a "best of 2 nearest" matcher. [詳解]
|
| |
| CV_WRAP void | collectGarbage () CV_OVERRIDE |
| | Frees unused memory allocated before if there is any. [詳解]
|
| |
| | CV_WRAP_AS (apply) void operator()(const ImageFeatures &features1 |
| |
| CV_WRAP_AS(apply2) void operator()(const std CV_WRAP bool | isThreadSafe () const |
| | Performs images matching. [詳解]
|
| |
|
| void | match (const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo &matches_info) CV_OVERRIDE |
| | This method must implement matching logic in order to make the wrappers detail::FeaturesMatcher::operator()_ work. [詳解]
|
| |
|
| FeaturesMatcher (bool is_thread_safe=false) |
| |
|
|
bool | full_affine_ |
| |
|
int | num_matches_thresh1_ |
| |
|
int | num_matches_thresh2_ |
| |
|
Ptr< FeaturesMatcher > | impl_ |
| |
|
bool | is_thread_safe_ |
| |
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.
Unlike cv::detail::BestOf2NearestMatcher this matcher uses affine transformation (affine transformation estimate will be placed in 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 |
Constructs a "best of 2 nearest" matcher that expects affine transformation between images
- 引数
-
| full_affine | whether to use full affine transformation with 6 degress of freedom or reduced transformation with 4 degrees of freedom using only rotation, translation and uniform scaling |
| try_use_gpu | Should try to use GPU or not |
| match_conf | Match distances ration threshold |
| num_matches_thresh1 | Minimum number of matches required for the 2D affine transform estimation used in the inliers classification step |
- 参照
- cv::estimateAffine2D cv::estimateAffinePartial2D
◆ match()
This method must implement matching logic in order to make the wrappers detail::FeaturesMatcher::operator()_ work.
- 引数
-
| features1 | first image features |
| features2 | second image features |
| matches_info | found matches |
cv::detail::BestOf2NearestMatcherを再実装しています。
このクラス詳解は次のファイルから抽出されました: