#include <features2d.hpp>
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< GenericDescriptorMatcher > | clone (bool emptyTrainData=false) const =0 |
Static Public Member Functions | |
| static Ptr< GenericDescriptorMatcher > | create (const string &genericDescritptorMatcherType, const string ¶msFilename=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 |
| cv::GenericDescriptorMatcher::GenericDescriptorMatcher | ( | ) |
|
virtual |
|
virtual |
Reimplemented in cv::VectorDescriptorMatcher.
| void cv::GenericDescriptorMatcher::classify | ( | const Mat & | queryImage, |
| vector< KeyPoint > & | queryKeypoints, | ||
| const Mat & | trainImage, | ||
| vector< KeyPoint > & | trainKeypoints | ||
| ) | const |
| void cv::GenericDescriptorMatcher::classify | ( | const Mat & | queryImage, |
| vector< KeyPoint > & | queryKeypoints | ||
| ) |
|
virtual |
Reimplemented in cv::FernDescriptorMatcher, cv::OneWayDescriptorMatcher, and cv::VectorDescriptorMatcher.
|
pure virtual |
Implemented in cv::FernDescriptorMatcher, cv::OneWayDescriptorMatcher, and cv::VectorDescriptorMatcher.
|
static |
|
virtual |
Reimplemented in cv::FernDescriptorMatcher, cv::OneWayDescriptorMatcher, and cv::VectorDescriptorMatcher.
| const vector<Mat>& cv::GenericDescriptorMatcher::getTrainImages | ( | ) | const |
| const vector<vector<KeyPoint> >& cv::GenericDescriptorMatcher::getTrainKeypoints | ( | ) | const |
|
pure virtual |
Implemented in cv::FernDescriptorMatcher, cv::OneWayDescriptorMatcher, and cv::VectorDescriptorMatcher.
| 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 |
| 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 |
||
| ) |
|
protectedpure virtual |
Implemented in cv::FernDescriptorMatcher, cv::OneWayDescriptorMatcher, and cv::VectorDescriptorMatcher.
| void cv::GenericDescriptorMatcher::match | ( | const Mat & | queryImage, |
| vector< KeyPoint > & | queryKeypoints, | ||
| const Mat & | trainImage, | ||
| vector< KeyPoint > & | trainKeypoints, | ||
| vector< DMatch > & | matches, | ||
| const Mat & | mask = Mat() |
||
| ) | const |
| void cv::GenericDescriptorMatcher::match | ( | const Mat & | queryImage, |
| vector< KeyPoint > & | queryKeypoints, | ||
| vector< DMatch > & | matches, | ||
| const vector< Mat > & | masks = vector< Mat >() |
||
| ) |
| 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 |
| 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 |
||
| ) |
|
protectedpure virtual |
Implemented in cv::FernDescriptorMatcher, cv::OneWayDescriptorMatcher, and cv::VectorDescriptorMatcher.
Reimplemented in cv::FernDescriptorMatcher, cv::OneWayDescriptorMatcher, and cv::VectorDescriptorMatcher.
|
virtual |
Reimplemented in cv::FernDescriptorMatcher, cv::OneWayDescriptorMatcher, and cv::VectorDescriptorMatcher.
|
virtual |
Reimplemented in cv::FernDescriptorMatcher, cv::OneWayDescriptorMatcher, and cv::VectorDescriptorMatcher.
|
protected |