|
Ocean
|
This class implements a simple container holding the index pairs of matching descriptors and their distance. More...
#include <VocabularyTree.h>
Public Member Functions | |
| Match ()=default | |
| Default constructor for an invalid match. | |
| Match (const Index32 candidateDescriptorIndex, const Index32 queryDescriptorIndex, const TDistance distance) | |
| Creates a new match object. | |
| Index32 | candidateDescriptorIndex () const |
| Returns the index of the candidate descriptor. | |
| Index32 | queryDescriptorIndex () const |
| Returns the index of the query descriptor. | |
| TDistance | distance () const |
| Returns the distance between both descriptors. | |
| bool | isValid () const |
| Returns whether this match is valid. | |
Protected Attributes | |
| Index32 | candidateDescriptorIndex_ = invalidMatchIndex() |
| The index of the candidate descriptor, with range [0, infinity). | |
| Index32 | queryDescriptorIndex_ = invalidMatchIndex() |
| The index of the query descriptor, with range [0, infinity). | |
| TDistance | distance_ = NumericT<TDistance>::maxValue() |
| The distance between both descriptors, with range [0, infinity]. | |
This class implements a simple container holding the index pairs of matching descriptors and their distance.
| TDistance | The data type of the distance measure between two descriptors, e.g., 'unsigned int', 'float' |
|
default |
Default constructor for an invalid match.
|
inline |
Creates a new match object.
| candidateDescriptorIndex | The index of the candidate descriptor, with range [0, infinity) |
| queryDescriptorIndex | The index of the query descriptor, with range [0, infinity) |
| distance | The distance between both descriptors, with range [0, infinity] |
|
inline |
Returns the index of the candidate descriptor.
|
inline |
Returns the distance between both descriptors.
|
inline |
Returns whether this match is valid.
|
inline |
Returns the index of the query descriptor.
|
protected |
The index of the candidate descriptor, with range [0, infinity).
|
protected |
The distance between both descriptors, with range [0, infinity].
|
protected |
The index of the query descriptor, with range [0, infinity).