LOST
0.0.1
LOST: Open-source Star Tracker
|
An algorithm that detects the (x,y) coordinates of bright points in an image, called "centroids". More...
#include <centroiders.hpp>
Public Member Functions | |
virtual Stars | Go (unsigned char *image, int imageWidth, int imageHeight) const =0 |
Actually perform the centroid detection. More... | |
virtual | ~CentroidAlgorithm () |
An algorithm that detects the (x,y) coordinates of bright points in an image, called "centroids".
Definition at line 12 of file centroiders.hpp.
|
inlinevirtual |
Definition at line 21 of file centroiders.hpp.
|
pure virtual |
Actually perform the centroid detection.
This is the "main" function of CentroidAlgorithm.
image | An row-major indexed array of grayscale pixels. 0 is black, 255 is white. The total length is imageWidth * imageHeight |
imageWidth,imageHeight | Image dimensions in pixels. |
Implemented in lost::IterativeWeightedCenterOfGravityAlgorithm, lost::CenterOfGravityAlgorithm, and lost::DummyCentroidAlgorithm.