#include <features2d.hpp>
Inherits cv::GenericDescriptorMatcher.
Classes | |
class | Params |
Public Member Functions | |
OneWayDescriptorMatcher (const Params ¶ms=Params()) | |
virtual | ~OneWayDescriptorMatcher () |
void | initialize (const Params ¶ms, const Ptr< OneWayDescriptorBase > &base=Ptr< OneWayDescriptorBase >()) |
virtual void | clear () |
virtual void | train () |
virtual bool | isMaskSupported () |
virtual void | read (const FileNode &fn) |
virtual void | write (FileStorage &fs) const |
virtual bool | empty () const |
virtual Ptr < GenericDescriptorMatcher > | clone (bool emptyTrainData=false) const |
virtual void | add (const vector< Mat > &images, vector< vector< KeyPoint > > &keypoints) |
const vector< Mat > & | getTrainImages () const |
const vector< vector< KeyPoint > > & | getTrainKeypoints () const |
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 | match (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, vector< DMatch > &matches, const vector< Mat > &masks=vector< Mat >()) |
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 | 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, const Mat &trainImage, vector< KeyPoint > &trainKeypoints, vector< vector< DMatch > > &matches, float maxDistance, const Mat &mask=Mat(), bool compactResult=false) const |
void | radiusMatch (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, vector< vector< DMatch > > &matches, float maxDistance, const vector< Mat > &masks=vector< Mat >(), bool compactResult=false) |
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) |
virtual void | radiusMatchImpl (const Mat &queryImage, vector< KeyPoint > &queryKeypoints, vector< vector< DMatch > > &matches, float maxDistance, const vector< Mat > &masks, bool compactResult) |
Protected Attributes | |
Ptr< OneWayDescriptorBase > | base |
Params | params |
int | prevTrainCount |
KeyPointCollection | trainPointCollection |
virtual cv::OneWayDescriptorMatcher::~OneWayDescriptorMatcher | ( | ) | [virtual] |
void cv::OneWayDescriptorMatcher::initialize | ( | const Params & | params, | |
const Ptr< OneWayDescriptorBase > & | base = Ptr< OneWayDescriptorBase >() | |||
) |
virtual void cv::OneWayDescriptorMatcher::clear | ( | ) | [virtual] |
Reimplemented from cv::GenericDescriptorMatcher.
virtual void cv::OneWayDescriptorMatcher::train | ( | ) | [virtual] |
Reimplemented from cv::GenericDescriptorMatcher.
virtual bool cv::OneWayDescriptorMatcher::isMaskSupported | ( | ) | [virtual] |
Implements cv::GenericDescriptorMatcher.
virtual void cv::OneWayDescriptorMatcher::read | ( | const FileNode & | fn | ) | [virtual] |
Reimplemented from cv::GenericDescriptorMatcher.
virtual void cv::OneWayDescriptorMatcher::write | ( | FileStorage & | fs | ) | const [virtual] |
Reimplemented from cv::GenericDescriptorMatcher.
virtual bool cv::OneWayDescriptorMatcher::empty | ( | ) | const [virtual] |
Reimplemented from cv::GenericDescriptorMatcher.
virtual Ptr<GenericDescriptorMatcher> cv::OneWayDescriptorMatcher::clone | ( | bool | emptyTrainData = false |
) | const [virtual] |
Implements cv::GenericDescriptorMatcher.
virtual void cv::OneWayDescriptorMatcher::knnMatchImpl | ( | const Mat & | queryImage, | |
vector< KeyPoint > & | queryKeypoints, | |||
vector< vector< DMatch > > & | matches, | |||
int | k, | |||
const vector< Mat > & | masks, | |||
bool | compactResult | |||
) | [protected, virtual] |
Implements cv::GenericDescriptorMatcher.
virtual void cv::OneWayDescriptorMatcher::radiusMatchImpl | ( | const Mat & | queryImage, | |
vector< KeyPoint > & | queryKeypoints, | |||
vector< vector< DMatch > > & | matches, | |||
float | maxDistance, | |||
const vector< Mat > & | masks, | |||
bool | compactResult | |||
) | [protected, virtual] |
Implements cv::GenericDescriptorMatcher.
virtual void cv::GenericDescriptorMatcher::add | ( | const vector< Mat > & | images, | |
vector< vector< KeyPoint > > & | keypoints | |||
) | [virtual, inherited] |
Reimplemented in cv::VectorDescriptorMatcher.
const vector<Mat>& cv::GenericDescriptorMatcher::getTrainImages | ( | ) | const [inherited] |
const vector<vector<KeyPoint> >& cv::GenericDescriptorMatcher::getTrainKeypoints | ( | ) | const [inherited] |
void cv::GenericDescriptorMatcher::classify | ( | const Mat & | queryImage, | |
vector< KeyPoint > & | queryKeypoints, | |||
const Mat & | trainImage, | |||
vector< KeyPoint > & | trainKeypoints | |||
) | const [inherited] |
void cv::GenericDescriptorMatcher::classify | ( | const Mat & | queryImage, | |
vector< KeyPoint > & | queryKeypoints | |||
) | [inherited] |
void cv::GenericDescriptorMatcher::match | ( | const Mat & | queryImage, | |
vector< KeyPoint > & | queryKeypoints, | |||
const Mat & | trainImage, | |||
vector< KeyPoint > & | trainKeypoints, | |||
vector< DMatch > & | matches, | |||
const Mat & | mask = Mat() | |||
) | const [inherited] |
void cv::GenericDescriptorMatcher::match | ( | const Mat & | queryImage, | |
vector< KeyPoint > & | queryKeypoints, | |||
vector< DMatch > & | matches, | |||
const vector< Mat > & | masks = vector< Mat >() | |||
) | [inherited] |
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 [inherited] |
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 | |||
) | [inherited] |
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 [inherited] |
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 | |||
) | [inherited] |
static Ptr<GenericDescriptorMatcher> cv::GenericDescriptorMatcher::create | ( | const string & | genericDescritptorMatcherType, | |
const string & | paramsFilename = string() | |||
) | [static, inherited] |
Ptr<OneWayDescriptorBase> cv::OneWayDescriptorMatcher::base [protected] |
Params cv::OneWayDescriptorMatcher::params [protected] |
int cv::OneWayDescriptorMatcher::prevTrainCount [protected] |
KeyPointCollection cv::GenericDescriptorMatcher::trainPointCollection [protected, inherited] |