OpenCV  2.4.13.7
Open Source Computer Vision
cv::DescriptorMatcher Class Referenceabstract

#include <features2d.hpp>

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

Classes

class  DescriptorCollection
 

Public Member Functions

virtual ~DescriptorMatcher ()
 
virtual void add (const vector< Mat > &descriptors)
 
const vector< Mat > & getTrainDescriptors () const
 
virtual void clear ()
 
virtual bool empty () const
 
virtual bool isMaskSupported () const =0
 
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
 
virtual Ptr< DescriptorMatcherclone (bool emptyTrainData=false) const =0
 
- 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
 
virtual AlgorithmInfoinfo () const
 

Static Public Member Functions

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)
 

Protected Member Functions

virtual void knnMatchImpl (const Mat &queryDescriptors, vector< vector< DMatch > > &matches, int k, const vector< Mat > &masks=vector< Mat >(), bool compactResult=false)=0
 
virtual void radiusMatchImpl (const Mat &queryDescriptors, vector< vector< DMatch > > &matches, float maxDistance, const vector< Mat > &masks=vector< Mat >(), bool compactResult=false)=0
 
void checkMasks (const vector< Mat > &masks, int queryDescriptorsCount) const
 

Static Protected Member Functions

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)
 

Protected Attributes

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)
 

Constructor & Destructor Documentation

§ ~DescriptorMatcher()

virtual cv::DescriptorMatcher::~DescriptorMatcher ( )
virtual

Member Function Documentation

§ add()

virtual void cv::DescriptorMatcher::add ( const vector< Mat > &  descriptors)
virtual

Reimplemented in cv::FlannBasedMatcher.

§ checkMasks()

void cv::DescriptorMatcher::checkMasks ( const vector< Mat > &  masks,
int  queryDescriptorsCount 
) const
protected

§ clear()

virtual void cv::DescriptorMatcher::clear ( )
virtual

Reimplemented in cv::FlannBasedMatcher.

§ clone()

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

Implemented in cv::FlannBasedMatcher, and cv::BFMatcher.

§ clone_op()

static Mat cv::DescriptorMatcher::clone_op ( Mat  m)
inlinestaticprotected

§ create()

static Ptr<DescriptorMatcher> cv::DescriptorMatcher::create ( const string &  descriptorMatcherType)
static

§ empty()

virtual bool cv::DescriptorMatcher::empty ( ) const
virtual

§ getTrainDescriptors()

const vector<Mat>& cv::DescriptorMatcher::getTrainDescriptors ( ) const

§ isMaskedOut()

static bool cv::DescriptorMatcher::isMaskedOut ( const vector< Mat > &  masks,
int  queryIdx 
)
staticprotected

§ isMaskSupported()

virtual bool cv::DescriptorMatcher::isMaskSupported ( ) const
pure virtual

Implemented in cv::FlannBasedMatcher, and cv::BFMatcher.

§ isPossibleMatch()

static bool cv::DescriptorMatcher::isPossibleMatch ( const Mat mask,
int  queryIdx,
int  trainIdx 
)
staticprotected

§ knnMatch() [1/2]

void cv::DescriptorMatcher::knnMatch ( const Mat queryDescriptors,
const Mat trainDescriptors,
CV_OUT vector< vector< DMatch > > &  matches,
int  k,
const Mat mask = Mat(),
bool  compactResult = false 
) const

§ knnMatch() [2/2]

void cv::DescriptorMatcher::knnMatch ( const Mat queryDescriptors,
CV_OUT vector< vector< DMatch > > &  matches,
int  k,
const vector< Mat > &  masks = vector< Mat >(),
bool  compactResult = false 
)

§ knnMatchImpl()

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

Implemented in cv::FlannBasedMatcher, and cv::BFMatcher.

§ match() [1/2]

void cv::DescriptorMatcher::match ( const Mat queryDescriptors,
const Mat trainDescriptors,
CV_OUT vector< DMatch > &  matches,
const Mat mask = Mat() 
) const

§ match() [2/2]

void cv::DescriptorMatcher::match ( const Mat queryDescriptors,
CV_OUT vector< DMatch > &  matches,
const vector< Mat > &  masks = vector< Mat >() 
)

§ radiusMatch() [1/2]

void cv::DescriptorMatcher::radiusMatch ( const Mat queryDescriptors,
const Mat trainDescriptors,
vector< vector< DMatch > > &  matches,
float  maxDistance,
const Mat mask = Mat(),
bool  compactResult = false 
) const

§ radiusMatch() [2/2]

void cv::DescriptorMatcher::radiusMatch ( const Mat queryDescriptors,
vector< vector< DMatch > > &  matches,
float  maxDistance,
const vector< Mat > &  masks = vector< Mat >(),
bool  compactResult = false 
)

§ radiusMatchImpl()

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

Implemented in cv::FlannBasedMatcher, and cv::BFMatcher.

§ read()

virtual void cv::DescriptorMatcher::read ( const FileNode )
virtual

Reimplemented from cv::Algorithm.

Reimplemented in cv::FlannBasedMatcher.

§ train()

virtual void cv::DescriptorMatcher::train ( )
virtual

Reimplemented in cv::FlannBasedMatcher.

§ write()

virtual void cv::DescriptorMatcher::write ( FileStorage ) const
virtual

Reimplemented from cv::Algorithm.

Reimplemented in cv::FlannBasedMatcher.

Member Data Documentation

§ trainDescCollection

vector<Mat> cv::DescriptorMatcher::trainDescCollection
protected

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