LOST 0.0.1
LOST: Open-source Star Tracker
Loading...
Searching...
No Matches
io.hpp File Reference
#include <cairo/cairo.h>
#include <iostream>
#include <memory>
#include <random>
#include <string>
#include <vector>
#include "attitude-estimators.hpp"
#include "attitude-utils.hpp"
#include "camera.hpp"
#include "centroiders.hpp"
#include "databases.hpp"
#include "star-id.hpp"
#include "star-utils.hpp"
Include dependency graph for io.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  lost::UserSpecifiedOutputStream
 An output stream which might be a file or stdout. More...
class  lost::Image
 An 8-bit grayscale 2d image. More...
class  lost::PipelineOptions
 The command line options passed when running a pipeline. More...
class  lost::PipelineInput
 Represents the input and expected outputs of a pipeline run. More...
class  lost::GeneratedPipelineInput
 A pipeline input which is generated (fake image). More...
class  lost::PngPipelineInput
 A pipeline input created by reading a PNG from a file on disk. More...
struct  lost::PipelineOutput
 The result of running a pipeline. More...
struct  lost::StarIdComparison
 The result of comparing an actual star identification with the true star idenification, used for testing and benchmarking. More...
class  lost::Pipeline
 A set of algorithms that describes all or part of the star-tracking "pipeline". More...
class  lost::DatabaseOptions
 Command line options when using the database command. More...

Namespaces

namespace  lost
 LOST starting point.

Typedefs

typedef std::vector< std::unique_ptr< PipelineInput > > lost::PipelineInputList

Functions

const Catalog & lost::CatalogRead ()
 Read and parse the full catalog from disk. If called multiple times, will re-use the first result.
unsigned char * lost::SurfaceToGrayscaleImage (cairo_surface_t *cairoSurface)
 Convert a colored Cairo image surface into a row-major array of grayscale pixels.
cairo_surface_t * lost::GrayscaleImageToSurface (const unsigned char *image, const int width, const int height)
PipelineInputList lost::GetPipelineInput (const PipelineOptions &values)
 Come up with a list of pipeline inputs based on command line options.
std::ostream & lost::operator<< (std::ostream &os, const Camera &camera)
 Print information about the camera in machine and human-readable form.
Pipeline lost::SetPipeline (const PipelineOptions &values)
 Create a pipeline from command line options.
void lost::PipelineComparison (const PipelineInputList &expected, const std::vector< PipelineOutput > &actual, const PipelineOptions &values)
 Print or otherwise analyze the results of (perhaps multiple) runs of a star tracking pipeline.
StarIdComparison lost::StarIdsCompare (const StarIdentifiers &expected, const StarIdentifiers &actual, const Catalog &expectedCatalog, const Catalog &actualCatalog, decimal centroidThreshold, const Stars &expectedStars, const Stars &inputStars)
 Compare expected and actual star identifications.
SerializeContext lost::serFromDbValues (const DatabaseOptions &values)
MultiDatabaseDescriptor lost::GenerateDatabases (const Catalog &, const DatabaseOptions &values)
 Appropriately create descriptors for all requested databases according to command-line options.
void lost::InspectCatalog ()