Generic class to encapsulate functions to manage descriptors.
More...
#include <FClass.h>
|
static double | distance (const TDescriptor &a, const TDescriptor &b) |
|
static void | fromString (TDescriptor &a, const std::string &s) |
|
static void | toMat32F (const std::vector< TDescriptor > &descriptors, cv::Mat &mat) |
|
static std::string | toString (const TDescriptor &a) |
|
Generic class to encapsulate functions to manage descriptors.
This class must be inherited. Derived classes can be used as the parameter F when creating Templated structures (TemplatedVocabulary, TemplatedDatabase, ...)
Definition at line 25 of file FClass.h.
static double DBoW2::FClass::distance |
( |
const TDescriptor & |
a, |
|
|
const TDescriptor & |
b |
|
) |
| |
|
staticprivate |
Calculates the distance between two descriptors
- Parameters
-
- Returns
- distance
static void DBoW2::FClass::fromString |
( |
TDescriptor & |
a, |
|
|
const std::string & |
s |
|
) |
| |
|
staticprivate |
Returns a descriptor from a string
- Parameters
-
a | descriptor |
s | string version |
virtual void DBoW2::FClass::meanValue |
( |
const std::vector< pDescriptor > & |
descriptors, |
|
|
TDescriptor & |
mean |
|
) |
| |
|
privatepure virtual |
Calculates the mean value of a set of descriptors
- Parameters
-
descriptors | |
mean | mean descriptor |
static void DBoW2::FClass::toMat32F |
( |
const std::vector< TDescriptor > & |
descriptors, |
|
|
cv::Mat & |
mat |
|
) |
| |
|
staticprivate |
Returns a mat with the descriptors in float format
- Parameters
-
descriptors | |
mat | (out) NxL 32F matrix |
static std::string DBoW2::FClass::toString |
( |
const TDescriptor & |
a | ) |
|
|
staticprivate |
Returns a string version of the descriptor
- Parameters
-
- Returns
- string version
The documentation for this class was generated from the following file: