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

An algorithm that detects the (x,y) coordinates of bright points in an image, called "centroids". More...

#include <centroiders.hpp>

Inheritance diagram for lost::CentroidAlgorithm:

Public Member Functions

virtual Stars Go (unsigned char *image, int imageWidth, int imageHeight) const =0
 Actually perform the centroid detection. More...
 
virtual ~CentroidAlgorithm ()
 

Detailed Description

An algorithm that detects the (x,y) coordinates of bright points in an image, called "centroids".

Definition at line 12 of file centroiders.hpp.

Constructor & Destructor Documentation

◆ ~CentroidAlgorithm()

virtual lost::CentroidAlgorithm::~CentroidAlgorithm ( )
inlinevirtual

Definition at line 21 of file centroiders.hpp.

Member Function Documentation

◆ Go()

virtual Stars lost::CentroidAlgorithm::Go ( unsigned char *  image,
int  imageWidth,
int  imageHeight 
) const
pure virtual

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.

Implemented in lost::IterativeWeightedCenterOfGravityAlgorithm, lost::CenterOfGravityAlgorithm, and lost::DummyCentroidAlgorithm.


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