![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <inverted_index.h>

Public Types | |
| typedef Eigen::Matrix< kDescType, Eigen::Dynamic, kDescDim, Eigen::RowMajor > | DescType |
| typedef InvertedFile< kEmbeddingDim >::EntryType | EntryType |
| typedef InvertedFile< kEmbeddingDim >::GeomType | GeomType |
| typedef Eigen::Matrix< float, Eigen::Dynamic, kDescDim > | ProjMatrixType |
| typedef Eigen::VectorXf | ProjDescType |
Public Member Functions | |
| InvertedIndex () | |
| int | NumVisualWords () const |
| void | Initialize (const int num_words) |
| void | Finalize () |
| void | GenerateHammingEmbeddingProjection () |
| void | ComputeHammingEmbedding (const DescType &descriptors, const Eigen::VectorXi &word_ids) |
| void | AddEntry (const int image_id, const int word_id, typename DescType::Index feature_idx, const DescType &descriptor, const GeomType &geometry) |
| void | ClearEntries () |
| void | Query (const DescType &descriptors, const Eigen::MatrixXi &word_ids, std::vector< ImageScore > *image_scores) const |
| void | ConvertToBinaryDescriptor (const int word_id, const DescType &descriptor, std::bitset< kEmbeddingDim > *binary_descriptor) const |
| float | GetIDFWeight (const int word_id) const |
| void | FindMatches (const int word_id, const std::unordered_set< int > &image_ids, std::vector< const EntryType * > *matches) const |
| float | ComputeSelfSimilarity (const Eigen::MatrixXi &word_ids) const |
| void | GetImageIds (std::unordered_set< int > *image_ids) const |
| void | Read (std::ifstream *ifs) |
| void | Write (std::ofstream *ofs) const |
Static Public Attributes | |
| static const int | kInvalidWordId |
Definition at line 31 of file inverted_index.h.
| typedef Eigen::Matrix<kDescType, Eigen::Dynamic, kDescDim, Eigen::RowMajor> colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::DescType |
Definition at line 35 of file inverted_index.h.
| typedef InvertedFile<kEmbeddingDim>::EntryType colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::EntryType |
Definition at line 36 of file inverted_index.h.
| typedef InvertedFile<kEmbeddingDim>::GeomType colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::GeomType |
Definition at line 37 of file inverted_index.h.
| typedef Eigen::VectorXf colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::ProjDescType |
Definition at line 39 of file inverted_index.h.
| typedef Eigen::Matrix<float, Eigen::Dynamic, kDescDim> colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::ProjMatrixType |
Definition at line 38 of file inverted_index.h.
| colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::InvertedIndex |
Definition at line 122 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::AddEntry | ( | const int | image_id, |
| const int | word_id, | ||
| typename DescType::Index | feature_idx, | ||
| const DescType & | descriptor, | ||
| const GeomType & | geometry | ||
| ) |
Definition at line 200 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::ClearEntries |
Definition at line 214 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::ComputeHammingEmbedding | ( | const DescType & | descriptors, |
| const Eigen::VectorXi & | word_ids | ||
| ) |
Definition at line 165 of file inverted_index.h.
References descriptors.
| float colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::ComputeSelfSimilarity | ( | const Eigen::MatrixXi & | word_ids | ) | const |
Definition at line 309 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::ConvertToBinaryDescriptor | ( | const int | word_id, |
| const DescType & | descriptor, | ||
| std::bitset< kEmbeddingDim > * | binary_descriptor | ||
| ) | const |
Definition at line 277 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::Finalize |
Definition at line 143 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::FindMatches | ( | const int | word_id, |
| const std::unordered_set< int > & | image_ids, | ||
| std::vector< const EntryType * > * | matches | ||
| ) | const |
Definition at line 295 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::GenerateHammingEmbeddingProjection |
Definition at line 154 of file inverted_index.h.
References colmap::RandomGaussian().
| float colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::GetIDFWeight | ( | const int | word_id | ) | const |
Definition at line 289 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::GetImageIds | ( | std::unordered_set< int > * | image_ids | ) | const |
Definition at line 324 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::Initialize | ( | const int | num_words | ) |
Definition at line 133 of file inverted_index.h.
| int colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::NumVisualWords |
Definition at line 128 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::Query | ( | const DescType & | descriptors, |
| const Eigen::MatrixXi & | word_ids, | ||
| std::vector< ImageScore > * | image_scores | ||
| ) | const |
Definition at line 221 of file inverted_index.h.
References descriptors.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::Read | ( | std::ifstream * | ifs | ) |
Definition at line 332 of file inverted_index.h.
| void colmap::retrieval::InvertedIndex< kDescType, kDescDim, kEmbeddingDim >::Write | ( | std::ofstream * | ofs | ) | const |
Definition at line 375 of file inverted_index.h.
References float.
|
static |
Definition at line 33 of file inverted_index.h.