Class InvertedIndexInterface

Inheritance Relationships

Base Type

Class Documentation

class loop_closure::InvertedIndexInterface : public loop_closure::IndexInterface

Public Types

enum [anonymous]

Values:

enumerator kTargetDimensionality
typedef InvertedIndex<kTargetDimensionality> Index

Public Functions

inline InvertedIndexInterface(const std::string &quantizer_filename, int num_closest_words_for_nn_search)
inline virtual int GetNumDescriptorsInIndex() const
inline virtual void Clear()
inline void SetNumClosestWordsForNNSearch(int num_closest_words_for_nn_search)
inline virtual void AddDescriptors(const Eigen::MatrixXf &descriptors)
template<typename DerivedQuery, typename DerivedIndices, typename DerivedDistances>
inline void GetNNearestNeighbors(const Eigen::MatrixBase<DerivedQuery> &query_feature, int num_neighbors, const Eigen::MatrixBase<DerivedIndices> &indices_const, const Eigen::MatrixBase<DerivedDistances> &distances_const) const
template<typename DerivedQuery, typename DerivedIndices, typename DerivedDistances>
inline void GetNNearestNeighborsForFeatures(const Eigen::MatrixBase<DerivedQuery> &query_features, int num_neighbors, const Eigen::MatrixBase<DerivedIndices> &indices_const, const Eigen::MatrixBase<DerivedDistances> &distances_const) const
inline virtual void GetNNearestNeighborsForFeatures(const Eigen::MatrixXf &query_features, int num_neighbors, Eigen::MatrixXi *indices, Eigen::MatrixXf *distances) const
inline virtual void ProjectDescriptors(const DescriptorContainer &descriptors, Eigen::MatrixXf *projected_descriptors) const
inline virtual void ProjectDescriptors(const std::vector<aslam::common::FeatureDescriptorConstRef> &descriptors, Eigen::MatrixXf *projected_descriptors) const