Template Class VocabularyTree¶
Defined in File vocabulary-tree.h
Inheritance Relationships¶
Derived Type¶
public loop_closure::MutableVocabularyTree< Feature, Distance, FeatureAllocator >
(Template Class MutableVocabularyTree)
Class Documentation¶
-
template<class Feature, class Distance = distance::L2<Feature>, class FeatureAllocator = typename DefaultAllocator<Feature>::type>
class loop_closure::VocabularyTree¶ Subclassed by loop_closure::MutableVocabularyTree< Feature, Distance, FeatureAllocator >
Public Types
Public Functions
-
void GetNearestNeighborTopLevel(const Feature &f, unsigned int num_nearest_neighbors, std::vector<Word> *nearest_neighbors, std::vector<DistanceType> *distances) const¶
-
void GetNearestNeighborTopLevel(const Eigen::MatrixXf &features, unsigned int num_nearest_neighbors, std::vector<Word> *nearest_neighbors) const¶
-
uint32_t levels() const¶
-
uint32_t splits() const¶
-
uint32_t words() const¶
-
uint32_t CountLeaves() const¶
-
void Clear()¶
-
void Save(const std::string &file) const¶
-
bool Load(const std::string &file)¶
-
void Save(std::ofstream *out_stream) const¶
-
bool Load(std::ifstream *in_stream)¶
-
bool IsBinaryEqual(const VocabularyTree<Feature, Distance, FeatureAllocator> &other) const¶
-
void SetNodeCounts()¶
Protected Types
-
typedef GetSearchAccelerator<Feature, Distance, FeatureAllocator>::type SearchAccelerator¶
-
void GetNearestNeighborTopLevel(const Feature &f, unsigned int num_nearest_neighbors, std::vector<Word> *nearest_neighbors, std::vector<DistanceType> *distances) const¶