Ocean
|
This class implements a simple container holding the index pairs of matching descriptors and their distance. More...
Public Member Functions | |
Match ()=default | |
Default constructor for an invalid match. More... | |
Match (const Index32 candidateDescriptorIndex, const Index32 queryDescriptorIndex, const TDistance distance) | |
Creates a new match object. More... | |
Index32 | candidateDescriptorIndex () const |
Returns the index of the candidate descriptor. More... | |
Index32 | queryDescriptorIndex () const |
Returns the index of the query descriptor. More... | |
TDistance | distance () const |
Returns the distance between both descriptors. More... | |
bool | isValid () const |
Returns whether this match is valid. More... | |
Protected Attributes | |
Index32 | candidateDescriptorIndex_ = invalidMatchIndex() |
The index of the candidate descriptor, with range [0, infinity). More... | |
Index32 | queryDescriptorIndex_ = invalidMatchIndex() |
The index of the query descriptor, with range [0, infinity). More... | |
TDistance | distance_ = NumericT<TDistance>::maxValue() |
The distance between both descriptors, with range [0, infinity]. More... | |
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).