Class cv::detail::FeaturesMatcher#

Feature matchers base class.

Collaboration diagram for cv::detail::FeaturesMatcher:

Detailed Description#

Feature matchers base class.

Examples
samples/cpp/stitching_detailed.cpp.

Constructor & Destructor Documentation#

~FeaturesMatcher()#

cv::detail::FeaturesMatcher::~FeaturesMatcher()

FeaturesMatcher()#

cv::detail::FeaturesMatcher::FeaturesMatcher(bool is_thread_safe = false)

Member Function Documentation#

collectGarbage()#

void cv::detail::FeaturesMatcher::collectGarbage()

Python:

cv.detail.FeaturesMatcher.collectGarbage()

Frees unused memory allocated before if there is any.

isThreadSafe()#

bool cv::detail::FeaturesMatcher::isThreadSafe()

Python:

cv.detail.FeaturesMatcher.isThreadSafe() -> retval

Returns

True, if it’s possible to use the same matcher instance in parallel, false otherwise

operator()()#

void cv::detail::FeaturesMatcher::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

operator()()#

void cv::detail::FeaturesMatcher::operator()(
const std::vector< ImageFeatures > & features,
std::vector< MatchesInfo > & pairwise_matches,
const cv::UMat & mask = cv::UMat() )

Performs images matching.

The function is parallelized with the TBB library.

Parameters

  • features — Features of the source images

  • pairwise_matches — Found pairwise matches

  • mask — Mask indicating which image pairs must be matched

match()#

void cv::detail::FeaturesMatcher::match(
const ImageFeatures & features1,
const ImageFeatures & features2,
MatchesInfo & matches_info )

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

match()#

void cv::detail::FeaturesMatcher::match(
const std::vector< ImageFeatures > & features,
std::vector< MatchesInfo > & pairwise_matches,
const cv::UMat & mask = cv::UMat() )

This method implements logic to match features between arbitrary number of features. By default this checks every pair of inputs in the input, but the behaviour can be changed by subclasses.

Parameters

  • features — vector of image features

  • pairwise_matches — found matches

  • mask — (optional) mask indicating which image pairs should be matched

Member Data Documentation#

is_thread_safe_#

bool cv::detail::FeaturesMatcher::is_thread_safe_

Source file#

The documentation for this class was generated from the following file: