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

A centroid algorithm for debugging that returns random centroids. More...

#include <centroiders.hpp>

Inheritance diagram for lost::DummyCentroidAlgorithm:
Collaboration diagram for lost::DummyCentroidAlgorithm:

Public Member Functions

 DummyCentroidAlgorithm (int numStars)
 
Stars Go (unsigned char *image, int imageWidth, int imageHeight) const override
 Actually perform the centroid detection. More...
 
- Public Member Functions inherited from lost::CentroidAlgorithm
virtual ~CentroidAlgorithm ()
 

Detailed Description

A centroid algorithm for debugging that returns random centroids.

Definition at line 25 of file centroiders.hpp.

Constructor & Destructor Documentation

◆ DummyCentroidAlgorithm()

lost::DummyCentroidAlgorithm::DummyCentroidAlgorithm ( int  numStars)
inlineexplicit

Definition at line 27 of file centroiders.hpp.

Member Function Documentation

◆ Go()

std::vector< Star > lost::DummyCentroidAlgorithm::Go ( unsigned char *  image,
int  imageWidth,
int  imageHeight 
) const
overridevirtual

Actually perform the centroid detection.

This is the "main" function of CentroidAlgorithm.

Parameters
imageAn row-major indexed array of grayscale pixels. 0 is black, 255 is white. The total length is imageWidth * imageHeight
imageWidth,imageHeightImage dimensions in pixels.

Implements lost::CentroidAlgorithm.

Definition at line 19 of file centroiders.cpp.


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