last update 20 Sep 2009 |
#include <cvrLocationMatch.h>
Classes | |
class | parameters |
The parameters for the class locationMatch. More... | |
Public Types | |
enum | eMatchType |
Public Member Functions | |
locationMatch () | |
locationMatch (const parameters &par) | |
locationMatch (const locationMatch &other) | |
virtual | ~locationMatch () |
bool | apply (const list< location > &locsA, const std::list< dvector > &vctsA, const list< location > &locsB, const std::list< dvector > &vctsB, std::vector< location > &matchedLocsA, std::vector< dvector > &descA, std::vector< location > &matchedLocsB, std::vector< dvector > &descB) |
locationMatch & | copy (const locationMatch &other) |
locationMatch & | operator= (const locationMatch &other) |
virtual const std::string & | name () const |
virtual locationMatch * | clone () const |
virtual locationMatch * | newInstance () const |
const parameters & | getParameters () const |
bool | linearSearch (const list< location > &locsA, const std::list< dvector > &vctsA, const list< location > &locsB, const std::list< dvector > &vctsB, std::vector< location > &matchedLocsA, std::vector< dvector > &descA, std::vector< location > &matchedLocsB, std::vector< dvector > &descB) |
bool | kdtree (const list< location > &locsA, const std::list< dvector > &vctsA, const list< location > &locsB, const std::list< dvector > &vctsB, std::vector< location > &matchedLocsA, std::vector< dvector > &descA, std::vector< location > &matchedLocsB, std::vector< dvector > &descB) |
template<class T , class L > | |
void | convert (const L &theList, std::vector< T > &theVct) const |
This class is used to match the locations on two images, based on the descriptors associated to each location.
This class receives as input the output to any feature extraction functor (e.g. cvr::surfLocalDescriptor).
Types of algorithms to perform the match.
cvr::locationMatch::locationMatch | ( | ) |
Default constructor.
cvr::locationMatch::locationMatch | ( | const parameters & | par | ) |
Construct a functor using the given parameters.
cvr::locationMatch::locationMatch | ( | const locationMatch & | other | ) |
virtual cvr::locationMatch::~locationMatch | ( | ) | [virtual] |
Destructor.
bool cvr::locationMatch::apply | ( | const list< location > & | locsA, | |
const std::list< dvector > & | vctsA, | |||
const list< location > & | locsB, | |||
const std::list< dvector > & | vctsB, | |||
std::vector< location > & | matchedLocsA, | |||
std::vector< dvector > & | descA, | |||
std::vector< location > & | matchedLocsB, | |||
std::vector< dvector > & | descB | |||
) |
Find the matches between the locations and descriptors of two different images.
This method finds the matching locations in two images A and B.
locsA | locations of the image A | |
vctsA | descriptors for the locations of image A. | |
locsB | locations of the image B | |
vctsB | descriptors for the locations of image B. | |
matchedLocsA | locations for which a match in image B has been found. | |
descA | descriptors corresponding to the matchedLocsA | |
matchedLocsB | locations for which a match in image A has been found. | |
descB | descriptors corresponding to the matchedLocsB |
virtual locationMatch* cvr::locationMatch::clone | ( | ) | const [virtual] |
void cvr::locationMatch::convert | ( | const L & | theList, | |
std::vector< T > & | theVct | |||
) | const [inline] |
Convert the two locations/vectors.
locationMatch& cvr::locationMatch::copy | ( | const locationMatch & | other | ) |
const parameters& cvr::locationMatch::getParameters | ( | ) | const |
bool cvr::locationMatch::kdtree | ( | const list< location > & | locsA, | |
const std::list< dvector > & | vctsA, | |||
const list< location > & | locsB, | |||
const std::list< dvector > & | vctsB, | |||
std::vector< location > & | matchedLocsA, | |||
std::vector< dvector > & | descA, | |||
std::vector< location > & | matchedLocsB, | |||
std::vector< dvector > & | descB | |||
) |
Search with kd-trees.
bool cvr::locationMatch::linearSearch | ( | const list< location > & | locsA, | |
const std::list< dvector > & | vctsA, | |||
const list< location > & | locsB, | |||
const std::list< dvector > & | vctsB, | |||
std::vector< location > & | matchedLocsA, | |||
std::vector< dvector > & | descA, | |||
std::vector< location > & | matchedLocsB, | |||
std::vector< dvector > & | descB | |||
) |
Linear search.
virtual const std::string& cvr::locationMatch::name | ( | ) | const [virtual] |
virtual locationMatch* cvr::locationMatch::newInstance | ( | ) | const [virtual] |
locationMatch& cvr::locationMatch::operator= | ( | const locationMatch & | other | ) |