LOST  0.0.1
LOST: Open-source Star Tracker
lost::PipelineInput Class Referenceabstract

Represents the input and expected outputs of a pipeline run. More...

#include <io.hpp>

Inheritance diagram for lost::PipelineInput:

Public Member Functions

virtual ~PipelineInput ()
 
virtual const ImageInputImage () const
 
virtual const CatalogGetCatalog () const =0
 The catalog to which catalog indexes returned from other methods refer. More...
 
virtual const StarsInputStars () const
 
virtual const StarIdentifiersInputStarIds () const
 The centroid indices in the StarIdentifiers returned from InputStarIds should be indices into InputStars(), not ExpectedStars(), when present, because otherwise it's useless. More...
 
virtual const AttitudeInputAttitude () const
 Only used in tracking mode, in which case it is an estimate of the current attitude based on the last attitude, IMU info, etc. More...
 
virtual const CameraInputCamera () const
 
cairo_surface_t * InputImageSurface () const
 Convert the InputImage() output into a cairo surface. More...
 
virtual const StarsExpectedStars () const
 
virtual const StarIdentifiersExpectedStarIds () const
 Centroid indices in the StarIdentifiers returned from ExpectedStarIds should be indices into ExpectedStars(), /not/ InputStars(). More...
 
virtual const AttitudeExpectedAttitude () const
 

Detailed Description

Represents the input and expected outputs of a pipeline run.

This is all the data about the pipeline we are about to run that can be gathered without actually running the pipeline. The "input" members return the things that will be fed into the pipeline. The "expected" methods return the "correct" outputs, i.e. what a perfect star tracking algorithm would output (this is only meaningful whe the image is generated, otherwise we don't know the correct output!). The "expected" methods are used to evaluate the quality of our algorithms. Some of the methods (both input and expected) may return NULL for certain subclasses. By default, the "expected" methods return the corresponding inputs, which is reasonable behavior unless you are trying to intentionally introduce error into the inputs.

Definition at line 94 of file io.hpp.

Constructor & Destructor Documentation

◆ ~PipelineInput()

virtual lost::PipelineInput::~PipelineInput ( )
inlinevirtual

Definition at line 96 of file io.hpp.

Member Function Documentation

◆ ExpectedAttitude()

virtual const Attitude* lost::PipelineInput::ExpectedAttitude ( ) const
inlinevirtual

Definition at line 118 of file io.hpp.

Here is the call graph for this function:

◆ ExpectedStarIds()

virtual const StarIdentifiers* lost::PipelineInput::ExpectedStarIds ( ) const
inlinevirtual

Centroid indices in the StarIdentifiers returned from ExpectedStarIds should be indices into ExpectedStars(), /not/ InputStars().

This is in contrast to InputStarIds. If you need to compare ExpectedStarIds against the input stars, then you should use some function which uses simple heuristics to match the input stars and expected stars (eg based on distance). Cf how the star-ID comparator works for a reference implementation.

Reimplemented in lost::GeneratedPipelineInput.

Definition at line 117 of file io.hpp.

Here is the call graph for this function:

◆ ExpectedStars()

virtual const Stars* lost::PipelineInput::ExpectedStars ( ) const
inlinevirtual

Reimplemented in lost::GeneratedPipelineInput.

Definition at line 111 of file io.hpp.

Here is the call graph for this function:

◆ GetCatalog()

virtual const Catalog& lost::PipelineInput::GetCatalog ( ) const
pure virtual

The catalog to which catalog indexes returned from other methods refer.

Implemented in lost::PngPipelineInput, and lost::GeneratedPipelineInput.

Here is the caller graph for this function:

◆ InputAttitude()

virtual const Attitude* lost::PipelineInput::InputAttitude ( ) const
inlinevirtual

Only used in tracking mode, in which case it is an estimate of the current attitude based on the last attitude, IMU info, etc.

Reimplemented in lost::GeneratedPipelineInput.

Definition at line 106 of file io.hpp.

Here is the caller graph for this function:

◆ InputCamera()

virtual const Camera* lost::PipelineInput::InputCamera ( ) const
inlinevirtual

Reimplemented in lost::PngPipelineInput, and lost::GeneratedPipelineInput.

Definition at line 107 of file io.hpp.

Here is the caller graph for this function:

◆ InputImage()

virtual const Image* lost::PipelineInput::InputImage ( ) const
inlinevirtual

Reimplemented in lost::PngPipelineInput, and lost::GeneratedPipelineInput.

Definition at line 98 of file io.hpp.

Here is the caller graph for this function:

◆ InputImageSurface()

cairo_surface_t * lost::PipelineInput::InputImageSurface ( ) const

Convert the InputImage() output into a cairo surface.

Convert the result of InputImage() into a cairo surface.

Allocates a new surface, whih must be destroyed with cairo_surface_destroy

Definition at line 340 of file io.cpp.

Here is the call graph for this function:

◆ InputStarIds()

virtual const StarIdentifiers* lost::PipelineInput::InputStarIds ( ) const
inlinevirtual

The centroid indices in the StarIdentifiers returned from InputStarIds should be indices into InputStars(), not ExpectedStars(), when present, because otherwise it's useless.

Reimplemented in lost::GeneratedPipelineInput.

Definition at line 104 of file io.hpp.

Here is the caller graph for this function:

◆ InputStars()

virtual const Stars* lost::PipelineInput::InputStars ( ) const
inlinevirtual

Reimplemented in lost::GeneratedPipelineInput.

Definition at line 101 of file io.hpp.

Here is the caller graph for this function:

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