Template Class TreeBuilder

Class Documentation

template<class Feature, class Distance = distance::L2<Feature>, class FeatureAllocator = typename DefaultAllocator<Feature>::type>
class loop_closure::TreeBuilder

Public Types

typedef MutableVocabularyTree<Feature, Distance, FeatureAllocator> Tree
typedef SimpleKmeans<Feature, Distance, FeatureAllocator> Kmeans
typedef std::vector<Feature, FeatureAllocator> FeatureVector

Public Functions

TreeBuilder(const Feature &zero = Feature(), Distance d = Distance())
void Build(const FeatureVector &training_features, uint32_t k, uint32_t levels)
inline const Tree &tree() const
inline Kmeans &kmeans()
inline const Kmeans &kmeans() const

Protected Attributes

Tree tree_
Kmeans kmeans_
Feature zero_
Distance distance_