AliceVision
Photogrammetric Computer Vision Framework
Public Member Functions | List of all members
aliceVision::voctree::IVocabularyTree Class Referenceabstract
Inheritance diagram for aliceVision::voctree::IVocabularyTree:
aliceVision::voctree::VocabularyTree< Feature, Distance > aliceVision::voctree::VocabularyTree< Feature, L2 > aliceVision::voctree::MutableVocabularyTree< Feature, Distance > aliceVision::voctree::MutableVocabularyTree< Feature, L2 >

Public Member Functions

virtual void save (const std::string &file) const =0
 Save vocabulary to a file.
 
virtual void load (const std::string &file)=0
 Load vocabulary from a file.
 
virtual SparseHistogram quantizeToSparse (const void *blindDescriptors) const =0
 Create a SparseHistogram from a blind vector of descriptors. More...
 
virtual uint32_t levels () const =0
 Get the depth (number of levels) of the tree.
 
virtual uint32_t splits () const =0
 Get the branching factor (max splits at each node) of the tree.
 
virtual uint32_t words () const =0
 Get the number of words the tree contains.
 
virtual void clear ()=0
 Clears vocabulary, leaving an empty tree.
 

Member Function Documentation

◆ quantizeToSparse()

virtual SparseHistogram aliceVision::voctree::IVocabularyTree::quantizeToSparse ( const void *  blindDescriptors) const
pure virtual

Create a SparseHistogram from a blind vector of descriptors.

Parameters
blindDescriptors
Returns

Implemented in aliceVision::voctree::VocabularyTree< Feature, Distance >, and aliceVision::voctree::VocabularyTree< Feature, L2 >.


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