Virtual descriptor matcher for OpenCV feature2d framework. More...
#include <feature_matching.h>
Public Member Functions | |
virtual cv::Ptr < cv::DescriptorMatcher > | clone (bool emptyTrainData=false) const |
Clone the matcher. | |
virtual bool | isMaskSupported () const |
VirtualDescriptorMatcher (double _inlier_p=1.0) | |
Protected Member Functions | |
virtual void | knnMatchImpl (const cv::Mat &queryDescriptors, vector< vector< cv::DMatch > > &matches, int k, const vector< cv::Mat > &masks=vector< cv::Mat >(), bool compactResult=false) |
virtual void | radiusMatchImpl (const cv::Mat &queryDescriptors, vector< vector< cv::DMatch > > &matches, float maxDistance, const vector< cv::Mat > &masks=vector< cv::Mat >(), bool compactResult=false) |
Not implemented. | |
Private Attributes | |
double | inlier_p |
Virtual descriptor matcher for OpenCV feature2d framework.
Feature descriptor matcher that matches virtual descriptor extractors. The matching is controlled by parameter _inlier_p, which determines the probability with wich a correct match is substituted by a random one. For _inlier_p = 1 all features that match are matched correctly and there are no incorrect matches.
Definition at line 125 of file feature_matching.h.
VirtualDescriptorMatcher::VirtualDescriptorMatcher | ( | double | _inlier_p = 1.0 | ) | [inline] |
_inlier_p | probability of correct match. |
Definition at line 130 of file feature_matching.h.
cv::Ptr< cv::DescriptorMatcher > VirtualDescriptorMatcher::clone | ( | bool | emptyTrainData = false | ) | const [virtual] |
Clone the matcher.
Definition at line 78 of file feature_matching.cpp.
virtual bool VirtualDescriptorMatcher::isMaskSupported | ( | ) | const [inline, virtual] |
Definition at line 135 of file feature_matching.h.
void VirtualDescriptorMatcher::knnMatchImpl | ( | const cv::Mat & | queryDescriptors, |
vector< vector< cv::DMatch > > & | matches, | ||
int | k, | ||
const vector< cv::Mat > & | masks = vector<cv::Mat>() , |
||
bool | compactResult = false |
||
) | [protected, virtual] |
Definition at line 90 of file feature_matching.cpp.
void VirtualDescriptorMatcher::radiusMatchImpl | ( | const cv::Mat & | queryDescriptors, |
vector< vector< cv::DMatch > > & | matches, | ||
float | maxDistance, | ||
const vector< cv::Mat > & | masks = vector<cv::Mat>() , |
||
bool | compactResult = false |
||
) | [protected, virtual] |
Not implemented.
Definition at line 119 of file feature_matching.cpp.
double VirtualDescriptorMatcher::inlier_p [private] |
Definition at line 127 of file feature_matching.h.