Private Types | Private Member Functions | Static Private Member Functions | List of all members
DBoW2::FClass Class Referenceabstract

Generic class to encapsulate functions to manage descriptors. More...

#include <FClass.h>

Inheritance diagram for DBoW2::FClass:
Inheritance graph
[legend]

Private Types

typedef const TDescriptor * pDescriptor
 

Private Member Functions

virtual void meanValue (const std::vector< pDescriptor > &descriptors, TDescriptor &mean)=0
 

Static Private Member Functions

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)
 

Detailed Description

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.

Member Typedef Documentation

typedef const TDescriptor* DBoW2::FClass::pDescriptor
private

Definition at line 27 of file FClass.h.

Member Function Documentation

static double DBoW2::FClass::distance ( const TDescriptor &  a,
const TDescriptor &  b 
)
staticprivate

Calculates the distance between two descriptors

Parameters
a
b
Returns
distance
static void DBoW2::FClass::fromString ( TDescriptor &  a,
const std::string &  s 
)
staticprivate

Returns a descriptor from a string

Parameters
adescriptor
sstring 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
meanmean 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
adescriptor
Returns
string version

The documentation for this class was generated from the following file:


orb_slam2_with_maps_odom
Author(s): teng zhang
autogenerated on Fri Sep 25 2020 03:24:47