Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
EdgeMatcher Class Reference

#include <geometric_hash.h>

Inheritance diagram for EdgeMatcher:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::map< int,
std::pair< int, int > > 
ModelVotes
typedef std::map< int,
std::pair< int, int > > 
ModelVotes

Public Member Functions

int addModel (CvSeq *edge)
int addModel (CvSeq *edge)
void addModelBasis (CvSeq *edge, int idx_origin, const AffineBasis &basis)
void addModelBasis (CvSeq *edge, int idx_origin, const AffineBasis &basis)
void aggregateVotes (const std::vector< int > &basis_votes, std::map< int, std::pair< int, int > > &agg_votes) const
void aggregateVotes (const std::vector< int > &basis_votes, std::map< int, std::pair< int, int > > &agg_votes) const
 EdgeMatcher (cv::Point3f _size, const cv::Point3f *_range)
 EdgeMatcher (cv::Point3f _size, const cv::Point3f *_range)
const AffineBasisgetBasis (int basis_id) const
const AffineBasisgetBasis (int basis_id) const
const GeometricHash3DgetHash () const
const GeometricHash3DgetHash () const
CvSeq * getModel (int modelID)
CvSeq * getModel (int modelID)
CvSeq * getModelByBasisID (int basis_id) const
CvSeq * getModelByBasisID (int basis_id) const
AffineBasis match (CvSeq *edge, std::map< int, std::pair< int, int > > &votes) const
AffineBasis match (CvSeq *edge, std::map< int, std::pair< int, int > > &votes) const
void matchBasis (CvSeq *edge, const AffineBasis &basis, int idx_origin, std::vector< int > &votes) const
void matchBasis (CvSeq *edge, const AffineBasis &basis, int idx_origin, std::vector< int > &votes) const

Static Public Member Functions

static bool votes_greater (const std::pair< int, std::pair< int, int > > &elem1, const std::pair< int, std::pair< int, int > > &elem2)
static bool votes_greater (const std::pair< int, std::pair< int, int > > &elem1, const std::pair< int, std::pair< int, int > > &elem2)

Protected Attributes

std::vector< CvSeq * > edges
GeometricHash3D hash

Static Protected Attributes

static const float min_angle = 0.15f

Detailed Description

Definition at line 122 of file detail/geometric_hash.h.


Member Typedef Documentation

typedef std::map<int,std::pair<int,int> > EdgeMatcher::ModelVotes

Definition at line 130 of file detail/geometric_hash.h.

typedef std::map<int,std::pair<int,int> > EdgeMatcher::ModelVotes

Definition at line 130 of file geometric_hash.h.


Constructor & Destructor Documentation

EdgeMatcher::EdgeMatcher ( cv::Point3f  _size,
const cv::Point3f *  _range 
) [inline]

Definition at line 132 of file detail/geometric_hash.h.

EdgeMatcher::EdgeMatcher ( cv::Point3f  _size,
const cv::Point3f *  _range 
) [inline]

Definition at line 132 of file geometric_hash.h.


Member Function Documentation

int EdgeMatcher::addModel ( CvSeq *  edge)

Definition at line 215 of file geometric_hash.cpp.

int EdgeMatcher::addModel ( CvSeq *  edge)
void EdgeMatcher::addModelBasis ( CvSeq *  edge,
int  idx_origin,
const AffineBasis basis 
)

Definition at line 242 of file geometric_hash.cpp.

void EdgeMatcher::addModelBasis ( CvSeq *  edge,
int  idx_origin,
const AffineBasis basis 
)
void EdgeMatcher::aggregateVotes ( const std::vector< int > &  basis_votes,
std::map< int, std::pair< int, int > > &  agg_votes 
) const

Definition at line 269 of file geometric_hash.cpp.

void EdgeMatcher::aggregateVotes ( const std::vector< int > &  basis_votes,
std::map< int, std::pair< int, int > > &  agg_votes 
) const
const AffineBasis& EdgeMatcher::getBasis ( int  basis_id) const [inline]

Definition at line 141 of file detail/geometric_hash.h.

const AffineBasis& EdgeMatcher::getBasis ( int  basis_id) const [inline]

Definition at line 141 of file geometric_hash.h.

const GeometricHash3D& EdgeMatcher::getHash ( ) const [inline]

Definition at line 142 of file geometric_hash.h.

const GeometricHash3D& EdgeMatcher::getHash ( ) const [inline]

Definition at line 142 of file detail/geometric_hash.h.

CvSeq* EdgeMatcher::getModel ( int  modelID) [inline]

Reimplemented in PointEdgeMatcher, and PointEdgeMatcher.

Definition at line 139 of file detail/geometric_hash.h.

CvSeq* EdgeMatcher::getModel ( int  modelID) [inline]

Reimplemented in PointEdgeMatcher, and PointEdgeMatcher.

Definition at line 139 of file geometric_hash.h.

CvSeq* EdgeMatcher::getModelByBasisID ( int  basis_id) const [inline]

Reimplemented in PointEdgeMatcher, and PointEdgeMatcher.

Definition at line 140 of file detail/geometric_hash.h.

CvSeq* EdgeMatcher::getModelByBasisID ( int  basis_id) const [inline]

Reimplemented in PointEdgeMatcher, and PointEdgeMatcher.

Definition at line 140 of file geometric_hash.h.

AffineBasis EdgeMatcher::match ( CvSeq *  edge,
std::map< int, std::pair< int, int > > &  votes 
) const
AffineBasis EdgeMatcher::match ( CvSeq *  edge,
std::map< int, std::pair< int, int > > &  votes 
) const

Definition at line 253 of file geometric_hash.cpp.

void EdgeMatcher::matchBasis ( CvSeq *  edge,
const AffineBasis basis,
int  idx_origin,
std::vector< int > &  votes 
) const

Definition at line 288 of file geometric_hash.cpp.

void EdgeMatcher::matchBasis ( CvSeq *  edge,
const AffineBasis basis,
int  idx_origin,
std::vector< int > &  votes 
) const
static bool EdgeMatcher::votes_greater ( const std::pair< int, std::pair< int, int > > &  elem1,
const std::pair< int, std::pair< int, int > > &  elem2 
) [inline, static]

Definition at line 144 of file detail/geometric_hash.h.

static bool EdgeMatcher::votes_greater ( const std::pair< int, std::pair< int, int > > &  elem1,
const std::pair< int, std::pair< int, int > > &  elem2 
) [inline, static]

Definition at line 144 of file geometric_hash.h.


Member Data Documentation

std::vector< CvSeq * > EdgeMatcher::edges [protected]

Definition at line 125 of file detail/geometric_hash.h.

Definition at line 126 of file detail/geometric_hash.h.

const float EdgeMatcher::min_angle = 0.15f [static, protected]

Definition at line 127 of file detail/geometric_hash.h.


The documentation for this class was generated from the following files:


outlet_pose_estimation
Author(s): Patrick Mihelich
autogenerated on Thu Aug 27 2015 14:29:52