Template Class DefaultSearchAccelerator

Class Documentation

template<class Feature, class Distance, class FeatureAllocator>
class loop_closure::DefaultSearchAccelerator

Public Functions

inline DefaultSearchAccelerator(const std::shared_ptr<std::vector<Feature, FeatureAllocator>> &database_features, const Distance &distance)
inline void GetNNearestNeighbors(const Feature &query_feature, int num_neighbors, std::vector<int> *neighbors, std::vector<typename Distance::result_type> *distances) const
inline unsigned int FindIndexOfClosestFeature(const Feature &query_feature) const