LOST 0.0.1
LOST: Open-source Star Tracker
Loading...
Searching...
No Matches
lost::TetraDatabase Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ TetraDatabase()

lost::TetraDatabase::TetraDatabase ( DeserializeContext * des)
explicit

Definition at line 259 of file databases.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ CatalogIndex()

uint16_t lost::TetraDatabase::CatalogIndex ( int tetraCatalogInd) const

Definition at line 277 of file databases.cpp.

Here is the caller graph for this function:

◆ GetPattern()

TetraPattern lost::TetraDatabase::GetPattern ( size_t index) const

Definition at line 269 of file databases.cpp.

Here is the caller graph for this function:

◆ GetPatternMatches()

std::vector< TetraPattern > lost::TetraDatabase::GetPatternMatches ( size_t index) const

Definition at line 281 of file databases.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaxFov()

decimal lost::TetraDatabase::MaxFov ( ) const
inline

Definition at line 114 of file databases.hpp.

Here is the caller graph for this function:

◆ NumEdgeRatioBins()

int lost::TetraDatabase::NumEdgeRatioBins ( ) const
inline

Definition at line 117 of file databases.hpp.

Here is the caller graph for this function:

◆ PatternTableSize()

uint64_t lost::TetraDatabase::PatternTableSize ( ) const
inline

Definition at line 120 of file databases.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ kMagicValue

const int32_t lost::TetraDatabase::kMagicValue = 0x26683787
static

Magic value to use when storing inside a MultiDatabase.

Definition at line 132 of file databases.hpp.


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