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

#include <features2d.hpp>

Inheritance diagram for cv::GenericDescriptorMatcher:
cv::FernDescriptorMatcher cv::OneWayDescriptorMatcher cv::VectorDescriptorMatcher

Classes

class  KeyPointCollection
 

Public Member Functions

 GenericDescriptorMatcher ()
 
virtual ~GenericDescriptorMatcher ()
 
virtual void add (const vector< Mat > &images, vector< vector< KeyPoint > > &keypoints)
 
const vector< Mat > & getTrainImages () const
 
const vector< vector< KeyPoint > > & getTrainKeypoints () const
 
virtual void clear ()
 
virtual bool isMaskSupported ()=0
 
virtual void train ()
 
void classify (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, const Mat &trainImage, vector< KeyPoint > &trainKeypoints) const
 
void classify (const Mat &queryImage, vector< KeyPoint > &queryKeypoints)
 
void match (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, const Mat &trainImage, vector< KeyPoint > &trainKeypoints, vector< DMatch > &matches, const Mat &mask=Mat()) const
 
void knnMatch (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, const Mat &trainImage, vector< KeyPoint > &trainKeypoints, vector< vector< DMatch > > &matches, int k, const Mat &mask=Mat(), bool compactResult=false) const
 
void radiusMatch (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, const Mat &trainImage, vector< KeyPoint > &trainKeypoints, vector< vector< DMatch > > &matches, float maxDistance, const Mat &mask=Mat(), bool compactResult=false) const
 
void match (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, vector< DMatch > &matches, const vector< Mat > &masks=vector< Mat >())
 
void knnMatch (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, vector< vector< DMatch > > &matches, int k, const vector< Mat > &masks=vector< Mat >(), bool compactResult=false)
 
void radiusMatch (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, vector< vector< DMatch > > &matches, float maxDistance, const vector< Mat > &masks=vector< Mat >(), bool compactResult=false)
 
virtual void read (const FileNode &fn)
 
virtual void write (FileStorage &fs) const
 
virtual bool empty () const
 
virtual Ptr< GenericDescriptorMatcherclone (bool emptyTrainData=false) const =0
 

Static Public Member Functions

static Ptr< GenericDescriptorMatchercreate (const string &genericDescritptorMatcherType, const string &paramsFilename=string())
 

Protected Member Functions

virtual void knnMatchImpl (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, vector< vector< DMatch > > &matches, int k, const vector< Mat > &masks, bool compactResult)=0
 
virtual void radiusMatchImpl (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, vector< vector< DMatch > > &matches, float maxDistance, const vector< Mat > &masks, bool compactResult)=0
 

Protected Attributes

KeyPointCollection trainPointCollection
 

Constructor & Destructor Documentation

§ GenericDescriptorMatcher()

cv::GenericDescriptorMatcher::GenericDescriptorMatcher ( )

§ ~GenericDescriptorMatcher()

virtual cv::GenericDescriptorMatcher::~GenericDescriptorMatcher ( )
virtual

Member Function Documentation

§ add()

virtual void cv::GenericDescriptorMatcher::add ( const vector< Mat > &  images,
vector< vector< KeyPoint > > &  keypoints 
)
virtual

Reimplemented in cv::VectorDescriptorMatcher.

§ classify() [1/2]

void cv::GenericDescriptorMatcher::classify ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints,
const Mat trainImage,
vector< KeyPoint > &  trainKeypoints 
) const

§ classify() [2/2]

void cv::GenericDescriptorMatcher::classify ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints 
)

§ clear()

virtual void cv::GenericDescriptorMatcher::clear ( )
virtual

§ clone()

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

§ create()

static Ptr<GenericDescriptorMatcher> cv::GenericDescriptorMatcher::create ( const string &  genericDescritptorMatcherType,
const string &  paramsFilename = string() 
)
static

§ empty()

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

§ getTrainImages()

const vector<Mat>& cv::GenericDescriptorMatcher::getTrainImages ( ) const

§ getTrainKeypoints()

const vector<vector<KeyPoint> >& cv::GenericDescriptorMatcher::getTrainKeypoints ( ) const

§ isMaskSupported()

virtual bool cv::GenericDescriptorMatcher::isMaskSupported ( )
pure virtual

§ knnMatch() [1/2]

void cv::GenericDescriptorMatcher::knnMatch ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints,
const Mat trainImage,
vector< KeyPoint > &  trainKeypoints,
vector< vector< DMatch > > &  matches,
int  k,
const Mat mask = Mat(),
bool  compactResult = false 
) const

§ knnMatch() [2/2]

void cv::GenericDescriptorMatcher::knnMatch ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints,
vector< vector< DMatch > > &  matches,
int  k,
const vector< Mat > &  masks = vector< Mat >(),
bool  compactResult = false 
)

§ knnMatchImpl()

virtual void cv::GenericDescriptorMatcher::knnMatchImpl ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints,
vector< vector< DMatch > > &  matches,
int  k,
const vector< Mat > &  masks,
bool  compactResult 
)
protectedpure virtual

§ match() [1/2]

void cv::GenericDescriptorMatcher::match ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints,
const Mat trainImage,
vector< KeyPoint > &  trainKeypoints,
vector< DMatch > &  matches,
const Mat mask = Mat() 
) const

§ match() [2/2]

void cv::GenericDescriptorMatcher::match ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints,
vector< DMatch > &  matches,
const vector< Mat > &  masks = vector< Mat >() 
)

§ radiusMatch() [1/2]

void cv::GenericDescriptorMatcher::radiusMatch ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints,
const Mat trainImage,
vector< KeyPoint > &  trainKeypoints,
vector< vector< DMatch > > &  matches,
float  maxDistance,
const Mat mask = Mat(),
bool  compactResult = false 
) const

§ radiusMatch() [2/2]

void cv::GenericDescriptorMatcher::radiusMatch ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints,
vector< vector< DMatch > > &  matches,
float  maxDistance,
const vector< Mat > &  masks = vector< Mat >(),
bool  compactResult = false 
)

§ radiusMatchImpl()

virtual void cv::GenericDescriptorMatcher::radiusMatchImpl ( const Mat queryImage,
vector< KeyPoint > &  queryKeypoints,
vector< vector< DMatch > > &  matches,
float  maxDistance,
const vector< Mat > &  masks,
bool  compactResult 
)
protectedpure virtual

§ read()

virtual void cv::GenericDescriptorMatcher::read ( const FileNode fn)
virtual

§ train()

virtual void cv::GenericDescriptorMatcher::train ( )
virtual

§ write()

virtual void cv::GenericDescriptorMatcher::write ( FileStorage fs) const
virtual

Member Data Documentation

§ trainPointCollection

KeyPointCollection cv::GenericDescriptorMatcher::trainPointCollection
protected

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