LOST 0.0.1
LOST: Open-source Star Tracker
Loading...
Searching...
No Matches
databases.hpp File Reference
#include <stdlib.h>
#include <array>
#include <cstdint>
#include <vector>
#include "serialize-helpers.hpp"
#include "star-utils.hpp"
Include dependency graph for databases.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  lost::KVectorIndex
 A data structure enabling constant-time range queries into fixed numerical data. More...
class  lost::PairDistanceKVectorDatabase
 A database storing distances between pairs of stars. More...
class  lost::TetraDatabase
 A database storing Tetra star patterns. More...
class  lost::MultiDatabase
class  lost::MultiDatabaseEntry

Namespaces

namespace  lost
 LOST starting point.

Macros

#define MULTI_DB_FLOAT_FLAG   0x0001
 Stores "inner angles" between star triples.

Typedefs

using lost::TetraPattern = std::array<uint16_t, TetraConstants::numPatternStars>
using lost::MultiDatabaseDescriptor = std::vector<MultiDatabaseEntry>

Functions

bool lost::isFlagSet (uint32_t dbFlags, uint32_t flag)
void lost::SerializePairDistanceKVector (SerializeContext *ser, const Catalog &catalog, decimal minDistance, decimal maxDistance, long numBins)
 Serialize a pair-distance KVector into buffer.
std::vector< uint16_t > lost::TetraPreprocessCatalog (const Catalog &catalog, const decimal maxFovDeg, int numPatternStarsPerFov)
void lost::SerializeTetraDatabase (SerializeContext *ser, const Catalog &catalog, decimal maxFovDeg, const std::vector< uint16_t > &catalogPatternStarInds, int numEdgeRatioBins)
void lost::SerializeMultiDatabase (SerializeContext *ser, const MultiDatabaseDescriptor &dbs, uint32_t flags)

Variables

const int32_t lost::kCatalogMagicValue = 0xF9A283BC

Macro Definition Documentation

◆ MULTI_DB_FLOAT_FLAG

#define MULTI_DB_FLOAT_FLAG   0x0001

Stores "inner angles" between star triples.

Unsensitive to first-order error in basic camera parameters (eg, wrong FOV or principal point), can be sensitive to second-order errors (eg, camera distortion, which may cause the effective FOV or principal point to be different in different parts of the image). Used for Mortari's Non-Dimensional Star-ID A database that contains multiple databases This is almost always the database that is actually passed to star-id algorithms in the real world, since you'll want to store at least the catalog plus one specific database. Multi-databases are essentially a map from "magic values" to database buffers.

Definition at line 166 of file databases.hpp.