OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::detail::BestOf2NearestRangeMatcher Class Reference

#include <opencv2/stitching/detail/matchers.hpp>

Inheritance diagram for cv::detail::BestOf2NearestRangeMatcher:
Collaboration diagram for cv::detail::BestOf2NearestRangeMatcher:

Public Member Functions

 BestOf2NearestRangeMatcher (int range_width=5, bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6, int num_matches_thresh2=6)
 
void collectGarbage () CV_OVERRIDE
 Frees unused memory allocated before if there is any. More...
 
bool isThreadSafe () const
 
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. More...
 
void operator() (const std::vector< ImageFeatures > &features, std::vector< MatchesInfo > &pairwise_matches, const cv::UMat &mask=cv::UMat())
 

Static Public Member Functions

static Ptr< BestOf2NearestMatchercreate (bool try_use_gpu=false, float match_conf=0.3f, int num_matches_thresh1=6, int num_matches_thresh2=6)
 

Protected Member Functions

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. More...
 

Protected Attributes

Ptr< FeaturesMatcherimpl_
 
bool is_thread_safe_
 
int num_matches_thresh1_
 
int num_matches_thresh2_
 
int range_width_
 

Constructor & Destructor Documentation

◆ BestOf2NearestRangeMatcher()

cv::detail::BestOf2NearestRangeMatcher::BestOf2NearestRangeMatcher ( int  range_width = 5,
bool  try_use_gpu = false,
float  match_conf = 0.3f,
int  num_matches_thresh1 = 6,
int  num_matches_thresh2 = 6 
)

Member Function Documentation

◆ collectGarbage()

void cv::detail::BestOf2NearestMatcher::collectGarbage ( )
virtualinherited

Frees unused memory allocated before if there is any.

Reimplemented from cv::detail::FeaturesMatcher.

◆ create()

static Ptr<BestOf2NearestMatcher> cv::detail::BestOf2NearestMatcher::create ( bool  try_use_gpu = false,
float  match_conf = 0.3f,
int  num_matches_thresh1 = 6,
int  num_matches_thresh2 = 6 
)
staticinherited

◆ isThreadSafe()

bool cv::detail::FeaturesMatcher::isThreadSafe ( ) const
inlineinherited
Returns
True, if it's possible to use the same matcher instance in parallel, false otherwise

◆ match()

void cv::detail::BestOf2NearestMatcher::match ( const ImageFeatures features1,
const ImageFeatures features2,
MatchesInfo matches_info 
)
protectedvirtualinherited

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

Implements cv::detail::FeaturesMatcher.

Reimplemented in cv::detail::AffineBestOf2NearestMatcher.

◆ operator()() [1/2]

void cv::detail::FeaturesMatcher::operator() ( const ImageFeatures features1,
const ImageFeatures features2,
MatchesInfo matches_info 
)
inlineinherited

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

References CV_OUT, CV_WRAP_AS, and cv::gapi::mask().

Here is the call graph for this function:

◆ operator()() [2/2]

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

Member Data Documentation

◆ impl_

Ptr<FeaturesMatcher> cv::detail::BestOf2NearestMatcher::impl_
protectedinherited

◆ is_thread_safe_

bool cv::detail::FeaturesMatcher::is_thread_safe_
protectedinherited

◆ num_matches_thresh1_

int cv::detail::BestOf2NearestMatcher::num_matches_thresh1_
protectedinherited

◆ num_matches_thresh2_

int cv::detail::BestOf2NearestMatcher::num_matches_thresh2_
protectedinherited

◆ range_width_

int cv::detail::BestOf2NearestRangeMatcher::range_width_
protected

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