#include <features2d.hpp>
Inherits cv::Algorithm.
Inherited by cv::BFMatcher, and cv::FlannBasedMatcher.
Classes | |
class | DescriptorCollection |
Public Types | |
typedef Algorithm *(* | Constructor )(void) |
typedef int(Algorithm::* | Getter )() const |
typedef void(Algorithm::* | Setter )(int) |
Public Member Functions | |
virtual | ~DescriptorMatcher () |
virtual CV_WRAP void | add (const vector< Mat > &descriptors) |
CV_WRAP const vector< Mat > & | getTrainDescriptors () const |
virtual CV_WRAP void | clear () |
virtual CV_WRAP bool | empty () const |
virtual CV_WRAP bool | isMaskSupported () const =0 |
virtual CV_WRAP void | train () |
CV_WRAP void | match (const Mat &queryDescriptors, const Mat &trainDescriptors, CV_OUT vector< DMatch > &matches, const Mat &mask=Mat()) const |
CV_WRAP 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 |
CV_WRAP void | match (const Mat &queryDescriptors, CV_OUT vector< DMatch > &matches, const vector< Mat > &masks=vector< Mat >()) |
CV_WRAP 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< DescriptorMatcher > | clone (bool emptyTrainData=false) const =0 |
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 |
CV_WRAP int | getInt (const string &name) const |
CV_WRAP double | getDouble (const string &name) const |
CV_WRAP bool | getBool (const string &name) const |
CV_WRAP string | getString (const string &name) const |
CV_WRAP Mat | getMat (const string &name) const |
CV_WRAP vector< Mat > | getMatVector (const string &name) const |
CV_WRAP Ptr< Algorithm > | getAlgorithm (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 | 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) |
CV_WRAP void | setInt (const string &name, int value) |
void | setInt (const char *name, int value) |
CV_WRAP void | setDouble (const string &name, double value) |
void | setDouble (const char *name, double value) |
CV_WRAP void | setBool (const string &name, bool value) |
void | setBool (const char *name, bool value) |
CV_WRAP void | setString (const string &name, const string &value) |
void | setString (const char *name, const string &value) |
CV_WRAP void | setMat (const string &name, const Mat &value) |
void | setMat (const char *name, const Mat &value) |
CV_WRAP void | setMatVector (const string &name, const vector< Mat > &value) |
void | setMatVector (const char *name, const vector< Mat > &value) |
CV_WRAP void | setAlgorithm (const string &name, const Ptr< Algorithm > &value) |
template<typename _Tp > | |
void | setAlgorithm (const string &name, const Ptr< _Tp > &value) |
void | setAlgorithm (const char *name, const Ptr< Algorithm > &value) |
template<typename _Tp > | |
void | setAlgorithm (const char *name, const Ptr< _Tp > &value) |
CV_WRAP string | paramHelp (const string &name) const |
int | paramType (const char *name) const |
CV_WRAP int | paramType (const string &name) const |
CV_WRAP void | getParams (CV_OUT vector< string > &names) const |
virtual AlgorithmInfo * | info () const |
Static Public Member Functions | |
static CV_WRAP Ptr < DescriptorMatcher > | create (const string &descriptorMatcherType) |
static CV_WRAP void | getList (CV_OUT vector< string > &algorithms) |
static CV_WRAP Ptr< Algorithm > | _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< Mat > | trainDescCollection |
|
inherited |
|
virtual |
Reimplemented in cv::FlannBasedMatcher.
CV_WRAP const vector<Mat>& cv::DescriptorMatcher::getTrainDescriptors | ( | ) | const |
|
virtual |
Reimplemented in cv::FlannBasedMatcher.
|
virtual |
|
pure virtual |
Implemented in cv::FlannBasedMatcher, and cv::BFMatcher.
|
virtual |
Reimplemented in cv::FlannBasedMatcher.
CV_WRAP void cv::DescriptorMatcher::match | ( | const Mat & | queryDescriptors, |
const Mat & | trainDescriptors, | ||
CV_OUT vector< DMatch > & | matches, | ||
const Mat & | mask = Mat() |
||
) | const |
CV_WRAP 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 |
void cv::DescriptorMatcher::radiusMatch | ( | const Mat & | queryDescriptors, |
const Mat & | trainDescriptors, | ||
vector< vector< DMatch > > & | matches, | ||
float | maxDistance, | ||
const Mat & | mask = Mat() , |
||
bool | compactResult = false |
||
) | const |
CV_WRAP void cv::DescriptorMatcher::match | ( | const Mat & | queryDescriptors, |
CV_OUT vector< DMatch > & | matches, | ||
const vector< Mat > & | masks = vector< Mat >() |
||
) |
CV_WRAP void cv::DescriptorMatcher::knnMatch | ( | const Mat & | queryDescriptors, |
CV_OUT vector< vector< DMatch > > & | matches, | ||
int | k, | ||
const vector< Mat > & | masks = vector< Mat >() , |
||
bool | compactResult = false |
||
) |
void cv::DescriptorMatcher::radiusMatch | ( | const Mat & | queryDescriptors, |
vector< vector< DMatch > > & | matches, | ||
float | maxDistance, | ||
const vector< Mat > & | masks = vector< Mat >() , |
||
bool | compactResult = false |
||
) |
Reimplemented from cv::Algorithm.
Reimplemented in cv::FlannBasedMatcher.
|
virtual |
Reimplemented from cv::Algorithm.
Reimplemented in cv::FlannBasedMatcher.
|
pure virtual |
Implemented in cv::FlannBasedMatcher, and cv::BFMatcher.
|
static |
|
protectedpure virtual |
Implemented in cv::FlannBasedMatcher, and cv::BFMatcher.
|
protectedpure virtual |
Implemented in cv::FlannBasedMatcher, and cv::BFMatcher.
|
staticprotected |
|
staticprotected |
|
protected |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
Reimplemented in cv::FlannBasedMatcher, cv::BFMatcher, cv::BriefDescriptorExtractor, cv::GridAdaptedFeatureDetector, cv::DenseFeatureDetector, cv::SimpleBlobDetector, cv::EM, cv::GFTTDetector, cv::FastFeatureDetector, cv::StarDetector, cv::MSER, cv::FREAK, cv::ORB, cv::BRISK, cv::BackgroundSubtractorGMG, cv::BackgroundSubtractorMOG2, cv::SURF, cv::ocl::SURF_OCL, cv::BackgroundSubtractorMOG, and cv::SIFT.
|
protected |