LOST 0.0.1
LOST: Open-source Star Tracker
Loading...
Searching...
No Matches
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.
virtual ~CentroidAlgorithm ()

Detailed Description

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

Definition at line 9 of file centroiders.hpp.

Constructor & Destructor Documentation

◆ ~CentroidAlgorithm()

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

Definition at line 18 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::CenterOfGravityAlgorithm, lost::DummyCentroidAlgorithm, and lost::IterativeWeightedCenterOfGravityAlgorithm.


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