LOST  0.0.1
LOST: Open-source Star Tracker
lost::StarIdentifier Class Reference

Records that a certain Star (detected in the image) corresponds to a certain CatalogStar. More...

#include <star-utils.hpp>

Public Member Functions

 StarIdentifier (int starIndex, int catalogIndex, int weight)
 
 StarIdentifier (int starIndex, int catalogIndex)
 Sets StarIdentifier.weight = 1. More...
 
bool operator== (const StarIdentifier &other) const
 

Public Attributes

int starIndex
 An index into an array of Star objects. More...
 
int catalogIndex
 An index into an array of CatalogStar objects. More...
 
decimal weight
 A weight indicating the confidence of this idenification. Often just 1. More...
 

Detailed Description

Records that a certain Star (detected in the image) corresponds to a certain CatalogStar.

Only stores indexes into an array of Star objects and an array of CatalogStar objects, which are stored elsewhere.

Definition at line 78 of file star-utils.hpp.

Constructor & Destructor Documentation

◆ StarIdentifier() [1/2]

lost::StarIdentifier::StarIdentifier ( int  starIndex,
int  catalogIndex,
int  weight 
)
inline

Definition at line 80 of file star-utils.hpp.

◆ StarIdentifier() [2/2]

lost::StarIdentifier::StarIdentifier ( int  starIndex,
int  catalogIndex 
)
inline

Sets StarIdentifier.weight = 1.

Definition at line 83 of file star-utils.hpp.

Member Function Documentation

◆ operator==()

bool lost::StarIdentifier::operator== ( const StarIdentifier other) const
inline

Definition at line 87 of file star-utils.hpp.

Member Data Documentation

◆ catalogIndex

int lost::StarIdentifier::catalogIndex

An index into an array of CatalogStar objects.

Definition at line 95 of file star-utils.hpp.

◆ starIndex

int lost::StarIdentifier::starIndex

An index into an array of Star objects.

Definition at line 93 of file star-utils.hpp.

◆ weight

decimal lost::StarIdentifier::weight

A weight indicating the confidence of this idenification. Often just 1.

Definition at line 97 of file star-utils.hpp.


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