opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

FeaturesMatcher Class Reference

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:
features1first image features
features2second image features
matches_infofound 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:
features1First image features
features2Second image features
matches_infoFound 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:
featuresFeatures of the source images
pairwise_matchesFound pairwise matches
maskMask indicating which image pairs must be matched

The function is parallelized with the TBB library.

See also:
detail::MatchesInfo