![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#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 |
Definition at line 37 of file visual_index.h.
| typedef InvertedIndexType::DescType colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::DescType |
Definition at line 42 of file visual_index.h.
| typedef InvertedIndexType::EntryType colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::EntryType |
Definition at line 43 of file visual_index.h.
| typedef FeatureKeypoints colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::GeomType |
Definition at line 41 of file visual_index.h.
| typedef InvertedIndex<kDescType, kDescDim, kEmbeddingDim> colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::InvertedIndexType |
Definition at line 40 of file visual_index.h.
| colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::VisualIndex |
Definition at line 171 of file visual_index.h.
| colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::~VisualIndex |
Definition at line 175 of file visual_index.h.
| void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Add | ( | const IndexOptions & | options, |
| const int | image_id, | ||
| const GeomType & | geometries, | ||
| const DescType & | descriptors | ||
| ) |
Definition at line 187 of file visual_index.h.
References descriptors, colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::IndexOptions::num_checks, colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::IndexOptions::num_neighbors, colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::IndexOptions::num_threads, colmap::retrieval::FeatureGeometry::orientation, colmap::retrieval::FeatureGeometry::scale, colmap::retrieval::FeatureGeometry::x, and colmap::retrieval::FeatureGeometry::y.
Referenced by colmap::RunVocabTreeRetriever().
| void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Build | ( | const BuildOptions & | options, |
| const DescType & | descriptors | ||
| ) |
Definition at line 515 of file visual_index.h.
References descriptors, colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::BuildOptions::num_checks, colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::BuildOptions::num_threads, and colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::BuildOptions::target_precision.
Referenced by colmap::RunVocabTreeBuilder().
| bool colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::ImageIndexed | ( | const int | image_id | ) | const |
Definition at line 231 of file visual_index.h.
Referenced by colmap::RunVocabTreeRetriever().
| size_t colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::NumVisualWords |
Definition at line 182 of file visual_index.h.
Referenced by colmap::RunVocabTreeBuilder().
| void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Prepare |
Definition at line 509 of file visual_index.h.
Referenced by colmap::RunVocabTreeRetriever().
| void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Query | ( | const QueryOptions & | options, |
| const DescType & | descriptors, | ||
| std::vector< ImageScore > * | image_scores | ||
| ) | const |
Definition at line 237 of file visual_index.h.
References descriptors.
Referenced by colmap::RunVocabTreeRetriever().
| void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Query | ( | const QueryOptions & | options, |
| const GeomType & | geometries, | ||
| const DescType & | descriptors, | ||
| std::vector< ImageScore > * | image_scores | ||
| ) | const |
Definition at line 246 of file visual_index.h.
References count, descriptors, colmap::retrieval::InvertedFileEntry< N >::feature_idx, colmap::retrieval::FeatureGeometryMatch::geometries2, colmap::retrieval::InvertedFileEntry< N >::geometry, colmap::retrieval::FeatureGeometryMatch::geometry1, colmap::retrieval::HammingDistWeightFunctor< N, kSigma >::kMaxHammingDistance, cloudViewer::core::make_pair(), colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::QueryOptions::num_images_after_verification, colmap::retrieval::FeatureGeometry::orientation, colmap::retrieval::FeatureGeometry::scale, colmap::retrieval::ImageScore::score, colmap::retrieval::VoteAndVerify(), colmap::retrieval::FeatureGeometry::x, and colmap::retrieval::FeatureGeometry::y.
| void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Read | ( | const std::string & | path | ) |
Definition at line 544 of file visual_index.h.
References cloudViewer::t::geometry::path, and SEEK_SET.
Referenced by colmap::RunVocabTreeRetriever().
| void colmap::retrieval::VisualIndex< kDescType, kDescDim, kEmbeddingDim >::Write | ( | const std::string & | path | ) |
Definition at line 595 of file visual_index.h.
References cloudViewer::t::geometry::path.
Referenced by colmap::RunVocabTreeBuilder(), and colmap::RunVocabTreeRetriever().
|
static |
Definition at line 39 of file visual_index.h.