Matches keypoints by their feature vectors and geometric properties. More...
#include <NNRMatcher.h>
Public Member Functions | |
std::string | getLog () |
std::vector< std::pair < KeyPoint, KeyPoint > > | getMatchedKeyPoints () |
std::list< KeyPointMatch > | getMatches () |
int | getNumMatches () |
void | match (float maxDistRatio=0.7) |
NNRMatcher (std::vector< KeyPoint > *keyPointsA, std::vector< KeyPoint > *keyPointsB) | |
The constructor. | |
~NNRMatcher () | |
The destructor. | |
Private Types | |
typedef std::list < KeyPointMatch >::iterator | MatchElem |
typedef std::list< KeyPointMatch > | MatchList |
Private Member Functions | |
void | eliminateMultipleMatches () |
If more than one keypoint of First have been matched with the same of Second, keep only closest. | |
Private Attributes | |
std::vector< KeyPoint > * | m_KeyPointsA |
std::vector< KeyPoint > * | m_KeyPointsB |
std::ostringstream | m_Log |
MatchList | m_Matches |
Matches keypoints by their feature vectors and geometric properties.
Definition at line 30 of file NNRMatcher.h.
typedef std::list<KeyPointMatch>::iterator NNRMatcher::MatchElem [private] |
Definition at line 71 of file NNRMatcher.h.
typedef std::list< KeyPointMatch > NNRMatcher::MatchList [private] |
Definition at line 68 of file NNRMatcher.h.
NNRMatcher::NNRMatcher | ( | std::vector< KeyPoint > * | keyPointsA, |
std::vector< KeyPoint > * | keyPointsB | ||
) |
The constructor.
first,second | Lists of keypoints to match with each other |
The destructor.
void NNRMatcher::eliminateMultipleMatches | ( | ) | [private] |
If more than one keypoint of First have been matched with the same of Second, keep only closest.
std::string NNRMatcher::getLog | ( | ) |
std::vector< std::pair< KeyPoint, KeyPoint > > NNRMatcher::getMatchedKeyPoints | ( | ) |
std::list< KeyPointMatch > NNRMatcher::getMatches | ( | ) | [inline] |
Definition at line 49 of file NNRMatcher.h.
int NNRMatcher::getNumMatches | ( | ) | [inline] |
Definition at line 52 of file NNRMatcher.h.
void NNRMatcher::match | ( | float | maxDistRatio = 0.7 | ) |
KeyPointMatch features by distance ratio strategy
maxDistRatio | Maximal ratio between closest and second-closest match |
symmetric | if true, only keep matches that a |
std::vector< KeyPoint >* NNRMatcher::m_KeyPointsA [private] |
Definition at line 64 of file NNRMatcher.h.
std::vector< KeyPoint >* NNRMatcher::m_KeyPointsB [private] |
Definition at line 65 of file NNRMatcher.h.
std::ostringstream NNRMatcher::m_Log [private] |
Definition at line 75 of file NNRMatcher.h.
MatchList NNRMatcher::m_Matches [private] |
Definition at line 73 of file NNRMatcher.h.