OpenCV
3.0.0
Open Source Computer Vision
|
Feature matchers base class. More...
#include "matchers.hpp"
Public Member Functions | |
virtual | ~FeaturesMatcher () |
virtual void | collectGarbage () |
Frees unused memory allocated before if there is any. More... | |
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()) |
Performs images matching. More... | |
Protected Member Functions | |
FeaturesMatcher (bool is_thread_safe=false) | |
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. More... | |
Protected Attributes | |
bool | is_thread_safe_ |
Feature matchers base class.
|
inlinevirtual |
|
inlineprotected |
|
inlinevirtual |
Frees unused memory allocated before if there is any.
Reimplemented in cv::detail::BestOf2NearestMatcher.
|
inline |
|
protectedpure virtual |
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 |
Implemented in cv::detail::BestOf2NearestMatcher.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
features1 | First image features |
features2 | Second image features |
matches_info | Found matches |
void cv::detail::FeaturesMatcher::operator() | ( | const std::vector< ImageFeatures > & | features, |
std::vector< MatchesInfo > & | pairwise_matches, | ||
const cv::UMat & | mask = cv::UMat() |
||
) |
Performs images matching.
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.
|
protected |