EasyMVS
simple 3D reconstruction framework
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
DBoW2::FSift128 Class Reference

Functions to manipulate SIFT descriptors. More...

#include <FSift128.h>

Inheritance diagram for DBoW2::FSift128:
Inheritance graph
[legend]
Collaboration diagram for DBoW2::FSift128:
Collaboration graph
[legend]

Public Types

using TDescriptor = std::vector< float >
 Descriptor type.
 
using pDescriptor = const TDescriptor *
 Pointer to a single descriptor.
 

Static Public Member Functions

static constexpr int dimensions ()
 Returns the number of dimensions of the descriptor space. More...
 
static void meanValue (const std::vector< pDescriptor > &descriptors, TDescriptor &mean)
 Calculates the mean value of a set of descriptors. More...
 
static double distance (const TDescriptor &a, const TDescriptor &b)
 Calculates the (squared) distance between two descriptors. More...
 
static std::string toString (const TDescriptor &a)
 Returns a string version of the descriptor. More...
 
static void fromString (TDescriptor &a, const std::string &s)
 Returns a descriptor from a string. More...
 
static void toMat32F (const std::vector< TDescriptor > &descriptors, cv::Mat &mat)
 Returns a mat with the descriptors in float format. More...
 
static void fromMat32F (const cv::Mat &mat, std::vector< TDescriptor > &descriptors)
 construct descriptors with the mat in float format. More...
 
static std::vector< TDescriptor > fromMat32F (const cv::Mat &mat)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Static Public Attributes

static constexpr int L = 128
 Descriptor length.
 

Detailed Description

Functions to manipulate SIFT descriptors.

Member Function Documentation

◆ dimensions()

static constexpr int DBoW2::FSift128::dimensions ( )
inlinestaticconstexpr

Returns the number of dimensions of the descriptor space.

Returns
dimensions

◆ distance()

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

Calculates the (squared) distance between two descriptors.

Parameters
a
b
Returns
(squared) distance

◆ fromMat32F()

void DBoW2::FSift128::fromMat32F ( const cv::Mat &  mat,
std::vector< TDescriptor > &  descriptors 
)
static

construct descriptors with the mat in float format.

Parameters
mat(in) NxL 32F matrix
descriptors

◆ fromString()

void DBoW2::FSift128::fromString ( FSift128::TDescriptor &  a,
const std::string &  s 
)
static

Returns a descriptor from a string.

Parameters
adescriptor
sstring version

◆ meanValue()

void DBoW2::FSift128::meanValue ( const std::vector< pDescriptor > &  descriptors,
TDescriptor &  mean 
)
static

Calculates the mean value of a set of descriptors.

Parameters
descriptorsvector of pointers to descriptors
meanmean descriptor

◆ toMat32F()

void DBoW2::FSift128::toMat32F ( const std::vector< TDescriptor > &  descriptors,
cv::Mat &  mat 
)
static

Returns a mat with the descriptors in float format.

Parameters
descriptors
mat(out) NxL 32F matrix

◆ toString()

std::string DBoW2::FSift128::toString ( const TDescriptor &  a)
static

Returns a string version of the descriptor.

Parameters
adescriptor
Returns
string version

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