#include <WAIOrbVocabulary.h>
Definition at line 51 of file WAIOrbVocabulary.h.
 
◆ WAIOrbVocabulary()
      
        
          | WAIOrbVocabulary::WAIOrbVocabulary  | 
          ( | 
          int  | 
          layer = 2 | ) | 
           | 
        
      
 
 
◆ ~WAIOrbVocabulary()
      
        
          | WAIOrbVocabulary::~WAIOrbVocabulary  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ create()
      
        
          | void WAIOrbVocabulary::create  | 
          ( | 
          std::vector< cv::Mat > &  | 
          features,  | 
        
        
           | 
           | 
          int  | 
          k,  | 
        
        
           | 
           | 
          int  | 
          l  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 120 of file WAIOrbVocabulary.cpp.
  123     fbow::VocabularyCreator         vc;
 
  124     fbow::VocabularyCreator::Params p;
 
  131     std::cout << 
"Creating a " << p.k << 
"^" << p.L << 
" vocabulary..." << std::endl;
 
  135     std::cout << 
"... done!" << std::endl;
 
  137     const DBoW2::WeightingType weight = DBoW2::TF_IDF;
 
  138     const DBoW2::ScoringType   
score  = DBoW2::L1_NORM;
 
  140     std::vector<std::vector<cv::Mat>> feats;
 
  141     feats.resize(features.size());
 
  143     cout << 
"Creating a " << k << 
"^" << l << 
" vocabulary..." << endl;
 
  144     for (
int i = 0; i < features.size(); i++)
 
  146         feats[i].resize(features[i].rows);
 
  147         for (
int j = 0; j < features[i].rows; j++)
 
  148             feats[i].push_back(features[i].row(j));
 
  154     cout << 
"... done!" << endl;
 
double score(WAIBowVector &bow1, WAIBowVector &bow2)
 
 
 
 
◆ loadFromFile()
      
        
          | void WAIOrbVocabulary::loadFromFile  | 
          ( | 
          std::string  | 
          strVocFile | ) | 
           | 
        
      
 
Definition at line 38 of file WAIOrbVocabulary.cpp.
   54     catch (std::exception& e)
 
   56         std::string err = 
"WAIOrbVocabulary::loadFromFile: failed to load vocabulary " + 
 
   57             strVocFile + 
", exception:" + e.what();
 
   58         throw std::runtime_error(err);
 
   61     bool bVocLoad = 
_vocabulary->loadFromBinaryFile(strVocFile);
 
   65         std::string err = 
"WAIOrbVocabulary::loadFromFile: failed to load vocabulary " + strVocFile;
 
   67         throw std::runtime_error(err);
 
void log(const char *tag, const char *format,...)
logs a formatted string platform independently
 
 
 
 
◆ save()
      
        
          | void WAIOrbVocabulary::save  | 
          ( | 
          std::string  | 
          path | ) | 
           | 
        
      
 
 
◆ score()
◆ setLayer()
  
  
      
        
          | void WAIOrbVocabulary::setLayer  | 
          ( | 
          int  | 
          layer | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ size()
      
        
          | size_t WAIOrbVocabulary::size  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ transform()
Definition at line 86 of file WAIOrbVocabulary.cpp.
   91     if (descriptors.rows == 0)
 
   97     vector<cv::Mat> vCurrentDesc = ORB_SLAM2::Converter::toDescriptorVector(descriptors);
 
 
 
 
◆ _layer
  
  
      
        
          | int WAIOrbVocabulary::_layer | 
         
       
   | 
  
private   | 
  
 
 
◆ _vocabulary
      
        
          | fbow::Vocabulary* WAIOrbVocabulary::_vocabulary = nullptr | 
        
      
 
 
The documentation for this class was generated from the following files: