Public Member Functions | Protected Member Functions | Private Attributes
VirtualDescriptorMatcher Class Reference

Virtual descriptor matcher for OpenCV feature2d framework. More...

#include <feature_matching.h>

List of all members.

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

Detailed Description

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.

See also:
VirtualDescriptorExtractor

Definition at line 125 of file feature_matching.h.


Constructor & Destructor Documentation

VirtualDescriptorMatcher::VirtualDescriptorMatcher ( double  _inlier_p = 1.0) [inline]
Parameters:
_inlier_pprobability of correct match.

Definition at line 130 of file feature_matching.h.


Member Function Documentation

cv::Ptr< cv::DescriptorMatcher > VirtualDescriptorMatcher::clone ( bool  emptyTrainData = false) const [virtual]

Clone the matcher.

Postcondition:
If emptyTrainData is false the method create deep copy of the object, i.e. copies both parameters and train data. If emptyTrainData is true the method creates object copy with current parameters but with empty train data.

Definition at line 78 of file feature_matching.cpp.

virtual bool VirtualDescriptorMatcher::isMaskSupported ( ) const [inline, virtual]
Returns:
true if the matcher supports mask in match methods (see OpenCV's documentation).

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.


Member Data Documentation

Definition at line 127 of file feature_matching.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


pose_estimation
Author(s): Jiri Divis/jiridivis@gmail.com
autogenerated on Wed Mar 27 2013 21:00:16