SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
WAIBowVector Struct Reference

#include <WAIOrbVocabulary.h>

Public Member Functions

 WAIBowVector ()
 
 WAIBowVector (std::vector< int > wid, std::vector< float > values)
 
fbow::fBow & getWordScoreMapping ()
 

Public Attributes

bool isFill = false
 
fbow::fBow data
 

Detailed Description

Definition at line 24 of file WAIOrbVocabulary.h.

Constructor & Destructor Documentation

◆ WAIBowVector() [1/2]

WAIBowVector::WAIBowVector ( )
inline

Definition at line 27 of file WAIOrbVocabulary.h.

27 {};

◆ WAIBowVector() [2/2]

WAIBowVector::WAIBowVector ( std::vector< int >  wid,
std::vector< float >  values 
)

Definition at line 72 of file WAIOrbVocabulary.cpp.

73 {
74  for (int i = 0; i < wid.size(); i++)
75  {
76 #if USE_FBOW
77  fbow::_float v;
78  v.var = values[i];
79  data.insert(std::pair<uint32_t, fbow::_float>(wid[i], v));
80 #else
81  data.insert(std::pair<DBoW2::WordId, DBoW2::WordValue>(wid[i], values[i]));
82 #endif
83  }
84 }
fbow::fBow data

Member Function Documentation

◆ getWordScoreMapping()

fbow::fBow& WAIBowVector::getWordScoreMapping ( )
inline

Definition at line 31 of file WAIOrbVocabulary.h.

31 { return data; }

Member Data Documentation

◆ data

fbow::fBow WAIBowVector::data

Definition at line 30 of file WAIOrbVocabulary.h.

◆ isFill

bool WAIBowVector::isFill = false

Definition at line 26 of file WAIOrbVocabulary.h.


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