OpenCV  2.4.13
Open Source Computer Vision
cv::BFMatcher Class Reference

#include <features2d.hpp>

Inheritance diagram for cv::BFMatcher:
cv::DescriptorMatcher cv::Algorithm cv::BruteForceMatcher< Distance >

Public Member Functions

 BFMatcher (int normType=NORM_L2, bool crossCheck=false)
 
virtual ~BFMatcher ()
 
virtual bool isMaskSupported () const
 
virtual Ptr< DescriptorMatcherclone (bool emptyTrainData=false) const
 
AlgorithmInfoinfo () const
 
- Public Member Functions inherited from cv::DescriptorMatcher
virtual ~DescriptorMatcher ()
 
virtual void add (const vector< Mat > &descriptors)
 
const vector< Mat > & getTrainDescriptors () const
 
virtual void clear ()
 
virtual bool empty () const
 
virtual void train ()
 
void match (const Mat &queryDescriptors, const Mat &trainDescriptors, CV_OUT vector< DMatch > &matches, const Mat &mask=Mat()) const
 
void knnMatch (const Mat &queryDescriptors, const Mat &trainDescriptors, CV_OUT vector< vector< DMatch > > &matches, int k, const Mat &mask=Mat(), bool compactResult=false) const
 
void radiusMatch (const Mat &queryDescriptors, const Mat &trainDescriptors, vector< vector< DMatch > > &matches, float maxDistance, const Mat &mask=Mat(), bool compactResult=false) const
 
void match (const Mat &queryDescriptors, CV_OUT vector< DMatch > &matches, const vector< Mat > &masks=vector< Mat >())
 
void knnMatch (const Mat &queryDescriptors, CV_OUT vector< vector< DMatch > > &matches, int k, const vector< Mat > &masks=vector< Mat >(), bool compactResult=false)
 
void radiusMatch (const Mat &queryDescriptors, vector< vector< DMatch > > &matches, float maxDistance, const vector< Mat > &masks=vector< Mat >(), bool compactResult=false)
 
virtual void read (const FileNode &)
 
virtual void write (FileStorage &) const
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
string name () const
 
template<typename _Tp >
ParamType< _Tp >::member_type get (const string &name) const
 
template<typename _Tp >
ParamType< _Tp >::member_type get (const char *name) const
 
int getInt (const string &name) const
 
double getDouble (const string &name) const
 
bool getBool (const string &name) const
 
string getString (const string &name) const
 
Mat getMat (const string &name) const
 
vector< MatgetMatVector (const string &name) const
 
Ptr< AlgorithmgetAlgorithm (const string &name) const
 
void set (const string &name, int value)
 
void set (const string &name, double value)
 
void set (const string &name, bool value)
 
void set (const string &name, const string &value)
 
void set (const string &name, const Mat &value)
 
void set (const string &name, const vector< Mat > &value)
 
void set (const string &name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void set (const string &name, const Ptr< _Tp > &value)
 
void setInt (const string &name, int value)
 
void setDouble (const string &name, double value)
 
void setBool (const string &name, bool value)
 
void setString (const string &name, const string &value)
 
void setMat (const string &name, const Mat &value)
 
void setMatVector (const string &name, const vector< Mat > &value)
 
void setAlgorithm (const string &name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const string &name, const Ptr< _Tp > &value)
 
void set (const char *name, int value)
 
void set (const char *name, double value)
 
void set (const char *name, bool value)
 
void set (const char *name, const string &value)
 
void set (const char *name, const Mat &value)
 
void set (const char *name, const vector< Mat > &value)
 
void set (const char *name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void set (const char *name, const Ptr< _Tp > &value)
 
void setInt (const char *name, int value)
 
void setDouble (const char *name, double value)
 
void setBool (const char *name, bool value)
 
void setString (const char *name, const string &value)
 
void setMat (const char *name, const Mat &value)
 
void setMatVector (const char *name, const vector< Mat > &value)
 
void setAlgorithm (const char *name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const char *name, const Ptr< _Tp > &value)
 
string paramHelp (const string &name) const
 
int paramType (const char *name) const
 
int paramType (const string &name) const
 
void getParams (CV_OUT vector< string > &names) const
 

Protected Member Functions

virtual void knnMatchImpl (const Mat &queryDescriptors, vector< vector< DMatch > > &matches, int k, const vector< Mat > &masks=vector< Mat >(), bool compactResult=false)
 
virtual void radiusMatchImpl (const Mat &queryDescriptors, vector< vector< DMatch > > &matches, float maxDistance, const vector< Mat > &masks=vector< Mat >(), bool compactResult=false)
 
- Protected Member Functions inherited from cv::DescriptorMatcher
void checkMasks (const vector< Mat > &masks, int queryDescriptorsCount) const
 

Protected Attributes

int normType
 
bool crossCheck
 
- Protected Attributes inherited from cv::DescriptorMatcher
vector< MattrainDescCollection
 

Additional Inherited Members

- Public Types inherited from cv::Algorithm
typedef Algorithm *(* Constructor) (void)
 
typedef int(Algorithm::* Getter) () const
 
typedef void(Algorithm::* Setter) (int)
 
- Static Public Member Functions inherited from cv::DescriptorMatcher
static Ptr< DescriptorMatchercreate (const string &descriptorMatcherType)
 
- Static Public Member Functions inherited from cv::Algorithm
static void getList (CV_OUT vector< string > &algorithms)
 
static Ptr< Algorithm_create (const string &name)
 
template<typename _Tp >
static Ptr< _Tp > create (const string &name)
 
- Static Protected Member Functions inherited from cv::DescriptorMatcher
static bool isPossibleMatch (const Mat &mask, int queryIdx, int trainIdx)
 
static bool isMaskedOut (const vector< Mat > &masks, int queryIdx)
 
static Mat clone_op (Mat m)
 

Constructor & Destructor Documentation

cv::BFMatcher::BFMatcher ( int  normType = NORM_L2,
bool  crossCheck = false 
)
virtual cv::BFMatcher::~BFMatcher ( )
inlinevirtual

Member Function Documentation

virtual Ptr<DescriptorMatcher> cv::BFMatcher::clone ( bool  emptyTrainData = false) const
virtual

Implements cv::DescriptorMatcher.

AlgorithmInfo* cv::BFMatcher::info ( ) const
virtual

Reimplemented from cv::Algorithm.

virtual bool cv::BFMatcher::isMaskSupported ( ) const
inlinevirtual

Implements cv::DescriptorMatcher.

virtual void cv::BFMatcher::knnMatchImpl ( const Mat queryDescriptors,
vector< vector< DMatch > > &  matches,
int  k,
const vector< Mat > &  masks = vector< Mat >(),
bool  compactResult = false 
)
protectedvirtual

Implements cv::DescriptorMatcher.

virtual void cv::BFMatcher::radiusMatchImpl ( const Mat queryDescriptors,
vector< vector< DMatch > > &  matches,
float  maxDistance,
const vector< Mat > &  masks = vector< Mat >(),
bool  compactResult = false 
)
protectedvirtual

Implements cv::DescriptorMatcher.

Member Data Documentation

bool cv::BFMatcher::crossCheck
protected
int cv::BFMatcher::normType
protected

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