OpenCV  2.4.13.5
Open Source Computer Vision
cv::FlannBasedMatcher Class Reference

#include <features2d.hpp>

Inheritance diagram for cv::FlannBasedMatcher:
cv::DescriptorMatcher cv::Algorithm

Public Member Functions

 FlannBasedMatcher (const Ptr< flann::IndexParams > &indexParams=new flann::KDTreeIndexParams(), const Ptr< flann::SearchParams > &searchParams=new flann::SearchParams())
 
virtual void add (const vector< Mat > &descriptors)
 
virtual void clear ()
 
virtual void read (const FileNode &)
 
virtual void write (FileStorage &) const
 
virtual void train ()
 
virtual bool isMaskSupported () const
 
virtual Ptr< DescriptorMatcherclone (bool emptyTrainData=false) const
 
AlgorithmInfoinfo () const
 
- Public Member Functions inherited from cv::DescriptorMatcher
virtual ~DescriptorMatcher ()
 
const vector< Mat > & getTrainDescriptors () const
 
virtual bool empty () const
 
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)
 
- 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
 

Static Protected Member Functions

static void convertToDMatches (const DescriptorCollection &descriptors, const Mat &indices, const Mat &distances, vector< vector< DMatch > > &matches)
 
- 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)
 

Protected Attributes

Ptr< flann::IndexParamsindexParams
 
Ptr< flann::SearchParamssearchParams
 
Ptr< flann::IndexflannIndex
 
DescriptorCollection mergedDescriptors
 
int addedDescCount
 
- 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)
 

Constructor & Destructor Documentation

§ FlannBasedMatcher()

cv::FlannBasedMatcher::FlannBasedMatcher ( const Ptr< flann::IndexParams > &  indexParams = new flann::KDTreeIndexParams(),
const Ptr< flann::SearchParams > &  searchParams = new flann::SearchParams() 
)

Member Function Documentation

§ add()

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

Reimplemented from cv::DescriptorMatcher.

§ clear()

virtual void cv::FlannBasedMatcher::clear ( )
virtual

Reimplemented from cv::DescriptorMatcher.

§ clone()

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

Implements cv::DescriptorMatcher.

§ convertToDMatches()

static void cv::FlannBasedMatcher::convertToDMatches ( const DescriptorCollection &  descriptors,
const Mat indices,
const Mat distances,
vector< vector< DMatch > > &  matches 
)
staticprotected

§ info()

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

Reimplemented from cv::Algorithm.

§ isMaskSupported()

virtual bool cv::FlannBasedMatcher::isMaskSupported ( ) const
virtual

Implements cv::DescriptorMatcher.

§ knnMatchImpl()

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

Implements cv::DescriptorMatcher.

§ radiusMatchImpl()

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

Implements cv::DescriptorMatcher.

§ read()

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

Reimplemented from cv::DescriptorMatcher.

§ train()

virtual void cv::FlannBasedMatcher::train ( )
virtual

Reimplemented from cv::DescriptorMatcher.

§ write()

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

Reimplemented from cv::DescriptorMatcher.

Member Data Documentation

§ addedDescCount

int cv::FlannBasedMatcher::addedDescCount
protected

§ flannIndex

Ptr<flann::Index> cv::FlannBasedMatcher::flannIndex
protected

§ indexParams

Ptr<flann::IndexParams> cv::FlannBasedMatcher::indexParams
protected

§ mergedDescriptors

DescriptorCollection cv::FlannBasedMatcher::mergedDescriptors
protected

§ searchParams

Ptr<flann::SearchParams> cv::FlannBasedMatcher::searchParams
protected

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