ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim > Class Template Reference

#include <visual_index.h>

Classes

struct  BuildOptions
 
struct  IndexOptions
 
struct  QueryOptions
 

Public Types

typedef InvertedIndex< kDescType, kDescDim, kEmbeddingDim > InvertedIndexType
 
typedef FeatureKeypoints GeomType
 
typedef InvertedIndexType::DescType DescType
 
typedef InvertedIndexType::EntryType EntryType
 

Public Member Functions

 VisualIndex ()
 
 ~VisualIndex ()
 
size_t NumVisualWords () const
 
void Add (const IndexOptions &options, const int image_id, const GeomType &geometries, const DescType &descriptors)
 
bool ImageIndexed (const int image_id) const
 
void Query (const QueryOptions &options, const DescType &descriptors, std::vector< ImageScore > *image_scores) const
 
void Query (const QueryOptions &options, const GeomType &geometries, const DescType &descriptors, std::vector< ImageScore > *image_scores) const
 
void Prepare ()
 
void Build (const BuildOptions &options, const DescType &descriptors)
 
void Read (const std::string &path)
 
void Write (const std::string &path)
 

Static Public Attributes

static const int kMaxNumThreads = -1
 

Member Typedef Documentation

◆ DescType

template<typename kDescType = uint8_t, int kDescDim = 128, int kEmbeddingDim = 64>
typedef InvertedIndexType::DescType colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::DescType

◆ EntryType

template<typename kDescType = uint8_t, int kDescDim = 128, int kEmbeddingDim = 64>
typedef InvertedIndexType::EntryType colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::EntryType

◆ GeomType

template<typename kDescType = uint8_t, int kDescDim = 128, int kEmbeddingDim = 64>
typedef FeatureKeypoints colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::GeomType

◆ InvertedIndexType

template<typename kDescType = uint8_t, int kDescDim = 128, int kEmbeddingDim = 64>
typedef InvertedIndex<kDescType, kDescDim, kEmbeddingDim> colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::InvertedIndexType

Constructor & Destructor Documentation

◆ VisualIndex()

template<typename kDescType , int kDescDim, int kEmbeddingDim>
colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::VisualIndex

◆ ~VisualIndex()

template<typename kDescType , int kDescDim, int kEmbeddingDim>
colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::~VisualIndex

Member Function Documentation

◆ Add()

◆ Build()

◆ ImageIndexed()

template<typename kDescType , int kDescDim, int kEmbeddingDim>
bool colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::ImageIndexed ( const int  image_id) const

◆ NumVisualWords()

template<typename kDescType , int kDescDim, int kEmbeddingDim>
size_t colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::NumVisualWords

◆ Prepare()

template<typename kDescType , int kDescDim, int kEmbeddingDim>
void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Prepare

◆ Query() [1/2]

template<typename kDescType , int kDescDim, int kEmbeddingDim>
void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Query ( const QueryOptions &  options,
const DescType &  descriptors,
std::vector< ImageScore > *  image_scores 
) const

References descriptors.

Referenced by colmap::RunVocabTreeRetriever().

◆ Query() [2/2]

◆ Read()

template<typename kDescType , int kDescDim, int kEmbeddingDim>
void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Read ( const std::string &  path)

◆ Write()

template<typename kDescType , int kDescDim, int kEmbeddingDim>
void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Write ( const std::string &  path)

Member Data Documentation

◆ kMaxNumThreads

template<typename kDescType = uint8_t, int kDescDim = 128, int kEmbeddingDim = 64>
const int colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::kMaxNumThreads = -1
static

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