opencv on mbed
FeaturesMatcher Class Reference
[Features Finding and Images Matching]
Feature matchers base class. More...
#include <matchers.hpp>
Inherited by BestOf2NearestMatcher.
Public Member Functions | |
void | operator() (const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo &matches_info) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
void | operator() (const std::vector< ImageFeatures > &features, std::vector< MatchesInfo > &pairwise_matches, const cv::UMat &mask=cv::UMat()) |
Performs images matching. | |
bool | isThreadSafe () const |
virtual void | collectGarbage () |
Frees unused memory allocated before if there is any. | |
Protected Member Functions | |
virtual void | match (const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo &matches_info)=0 |
This method must implement matching logic in order to make the wrappers detail::FeaturesMatcher::operator()_ work. |
Detailed Description
Feature matchers base class.
Definition at line 176 of file matchers.hpp.
Member Function Documentation
virtual void collectGarbage | ( | ) | [virtual] |
Frees unused memory allocated before if there is any.
Reimplemented in BestOf2NearestMatcher.
Definition at line 208 of file matchers.hpp.
bool isThreadSafe | ( | ) | const |
- Returns:
- True, if it's possible to use the same matcher instance in parallel, false otherwise
Definition at line 204 of file matchers.hpp.
virtual void match | ( | const ImageFeatures & | features1, |
const ImageFeatures & | features2, | ||
MatchesInfo & | matches_info | ||
) | [protected, pure virtual] |
This method must implement matching logic in order to make the wrappers detail::FeaturesMatcher::operator()_ work.
- Parameters:
-
features1 first image features features2 second image features matches_info found matches
Implemented in BestOf2NearestMatcher.
void operator() | ( | const ImageFeatures & | features1, |
const ImageFeatures & | features2, | ||
MatchesInfo & | matches_info | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Parameters:
-
features1 First image features features2 Second image features matches_info Found matches
Definition at line 186 of file matchers.hpp.
void operator() | ( | const std::vector< ImageFeatures > & | features, |
std::vector< MatchesInfo > & | pairwise_matches, | ||
const cv::UMat & | mask = cv::UMat() |
||
) |
Performs images matching.
- Parameters:
-
features Features of the source images pairwise_matches Found pairwise matches mask Mask indicating which image pairs must be matched
The function is parallelized with the TBB library.
- See also:
- detail::MatchesInfo
Generated on Tue Jul 12 2022 16:42:44 by 1.7.2