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

A pipeline input created by reading a PNG from a file on disk. More...

#include <io.hpp>

Inheritance diagram for lost::PngPipelineInput:
Collaboration diagram for lost::PngPipelineInput:

Public Member Functions

 PngPipelineInput (cairo_surface_t *, Camera, const Catalog &)
 A pipeline input coming from an image with no extra metadata.
 
 ~PngPipelineInput ()
 
const Image * InputImage () const override
 
const Camera * InputCamera () const override
 
const Catalog & GetCatalog () const override
 The catalog to which catalog indexes returned from other methods refer.
 
- Public Member Functions inherited from lost::PipelineInput
virtual ~PipelineInput ()
 
virtual const Stars * InputStars () const
 
virtual const StarIdentifiers * InputStarIds () const
 The centroid indices in the StarIdentifiers returned from InputStarIds should be indices into InputStars(), not ExpectedStars(), when present, because otherwise it's useless.
 
virtual const Attitude * InputAttitude () 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.
 
cairo_surface_t * InputImageSurface () const
 Convert the InputImage() output into a cairo surface.
 
virtual const Stars * ExpectedStars () const
 
virtual const StarIdentifiers * ExpectedStarIds () const
 Centroid indices in the StarIdentifiers returned from ExpectedStarIds should be indices into ExpectedStars(), /not/ InputStars().
 
virtual const Attitude * ExpectedAttitude () const
 

Detailed Description

A pipeline input created by reading a PNG from a file on disk.

Definition at line 167 of file io.hpp.

Constructor & Destructor Documentation

◆ PngPipelineInput()

lost::PngPipelineInput::PngPipelineInput ( cairo_surface_t *  cairoSurface,
Camera  camera,
const Catalog &  catalog 
)

A pipeline input coming from an image with no extra metadata.

Only InputImage will be available. No references to the surface are kept in the class and it may be freed after construction.

Parameters
cairoSurfaceA cairo surface from the image file.
Todo:
should rename, not specific to PNG.

Definition at line 366 of file io.cpp.

Here is the call graph for this function:

◆ ~PngPipelineInput()

lost::PngPipelineInput::~PngPipelineInput ( )

Definition at line 374 of file io.cpp.

Member Function Documentation

◆ GetCatalog()

const Catalog & lost::PngPipelineInput::GetCatalog ( ) const
inlineoverridevirtual

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

Implements lost::PipelineInput.

Definition at line 174 of file io.hpp.

◆ InputCamera()

const Camera * lost::PngPipelineInput::InputCamera ( ) const
inlineoverridevirtual

Reimplemented from lost::PipelineInput.

Definition at line 173 of file io.hpp.

◆ InputImage()

const Image * lost::PngPipelineInput::InputImage ( ) const
inlineoverridevirtual

Reimplemented from lost::PipelineInput.

Definition at line 172 of file io.hpp.


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