#include <geometric_hash.h>
Classes | |
struct | PointMatcherParams |
Public Types | |
typedef std::map< int, std::pair< int, int > > | ModelVotes |
Public Member Functions | |
int | addModel (const std::vector< KeyPointEx > &points) |
void | addModelBasis (const std::vector< KeyPointEx > &points, const AffineBasis &basis) |
const AffineBasis & | getBasis (int basis_id) const |
const GeometricHash & | getHash () const |
const std::vector< KeyPointEx > & | getTemplatePoints () const |
int | match (const std::vector< KeyPointEx > &points, std::vector< float > &votes, std::vector< std::pair< AffineBasis, AffineBasis > > &matched_bases) const |
void | matchBasis (const std::vector< KeyPointEx > &points, const AffineBasis &basis, std::vector< int > &votes) const |
PointMatcher (cv::Size _size, cv::Point2f range_min, cv::Point2f range_max, PointMatcher::PointMatcherParams _params=PointMatcher::PointMatcherParams()) | |
Protected Attributes | |
GeometricHash | hash |
PointMatcherParams | params |
std::vector< KeyPointEx > | template_points |
Definition at line 178 of file geometric_hash.h.
typedef std::map<int,std::pair<int,int> > PointMatcher::ModelVotes |
Definition at line 202 of file geometric_hash.h.
PointMatcher::PointMatcher | ( | cv::Size | _size, |
cv::Point2f | range_min, | ||
cv::Point2f | range_max, | ||
PointMatcher::PointMatcherParams | _params = PointMatcher::PointMatcherParams() |
||
) | [inline] |
Definition at line 204 of file geometric_hash.h.
int PointMatcher::addModel | ( | const std::vector< KeyPointEx > & | points | ) |
Definition at line 453 of file geometric_hash.cpp.
void PointMatcher::addModelBasis | ( | const std::vector< KeyPointEx > & | points, |
const AffineBasis & | basis | ||
) |
Definition at line 492 of file geometric_hash.cpp.
const AffineBasis& PointMatcher::getBasis | ( | int | basis_id | ) | const [inline] |
Definition at line 212 of file geometric_hash.h.
const GeometricHash& PointMatcher::getHash | ( | ) | const [inline] |
Definition at line 213 of file geometric_hash.h.
const std::vector<KeyPointEx>& PointMatcher::getTemplatePoints | ( | ) | const [inline] |
Definition at line 214 of file geometric_hash.h.
int PointMatcher::match | ( | const std::vector< KeyPointEx > & | points, |
std::vector< float > & | votes, | ||
std::vector< std::pair< AffineBasis, AffineBasis > > & | matched_bases | ||
) | const |
Definition at line 501 of file geometric_hash.cpp.
void PointMatcher::matchBasis | ( | const std::vector< KeyPointEx > & | points, |
const AffineBasis & | basis, | ||
std::vector< int > & | votes | ||
) | const |
Definition at line 638 of file geometric_hash.cpp.
GeometricHash PointMatcher::hash [protected] |
Definition at line 197 of file geometric_hash.h.
PointMatcherParams PointMatcher::params [protected] |
Definition at line 199 of file geometric_hash.h.
std::vector<KeyPointEx> PointMatcher::template_points [protected] |
Definition at line 198 of file geometric_hash.h.