A database storing Tetra star patterns. More...
#include <databases.hpp>
Public Member Functions | |
| TetraDatabase (DeserializeContext *des) | |
| decimal | MaxFov () const |
| int | NumEdgeRatioBins () const |
| uint64_t | PatternTableSize () const |
| TetraPattern | GetPattern (size_t index) const |
| std::vector< TetraPattern > | GetPatternMatches (size_t index) const |
| uint16_t | CatalogIndex (int tetraCatalogInd) const |
Static Public Attributes | |
| static const int32_t | kMagicValue = 0x26683787 |
| Magic value to use when storing inside a MultiDatabase. | |
A database storing Tetra star patterns.
Layout: | size (bytes) | name | description | |-------------------------------------—+---------------—+---------------------------------------------—| | sizeof(decimal) | maxFov | max angle (deg) between any 2 pattern stars | | sizeof(int32_t) | numEdgeRatioBins | number of bins for edge ratio discretization | | sizeof(uint64_t) | patternTableSize | number of slots in pattern hash table | | sizeof(uint16_t) | tetraCatalogSize | number of stars in Tetra preprocessed catalog | | 4 * patternTableSize * sizeof(uint16_t)| patternTable | hash table of 4-star patterns | | tetraCatalogSize * sizeof(uint16_t) | catalogIndices | maps Tetra index to real catalog index | |-------------------------------------—+---------------—+---------------------------------------------—|
Definition at line 109 of file databases.hpp.
|
explicit |
| uint16_t lost::TetraDatabase::CatalogIndex | ( | int | tetraCatalogInd | ) | const |
| TetraPattern lost::TetraDatabase::GetPattern | ( | size_t | index | ) | const |
| std::vector< TetraPattern > lost::TetraDatabase::GetPatternMatches | ( | size_t | index | ) | const |
Definition at line 281 of file databases.cpp.


|
inline |
|
inline |
|
inline |
|
static |
Magic value to use when storing inside a MultiDatabase.
Definition at line 132 of file databases.hpp.