LOST
0.0.1
LOST: Open-source Star Tracker
|
A more complicated centroid algorithm which doesn't perform much better than CenterOfGravityAlgorithm. More...
#include <centroiders.hpp>
Public Member Functions | |
IterativeWeightedCenterOfGravityAlgorithm () | |
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 () |
A more complicated centroid algorithm which doesn't perform much better than CenterOfGravityAlgorithm.
Iteratively estimates the center of the centroid. Some papers report that it is slightly more precise than CenterOfGravityAlgorithm, but that has not been our experience.
Definition at line 47 of file centroiders.hpp.
|
inline |
Definition at line 49 of file centroiders.hpp.
|
overridevirtual |
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. |
Implements lost::CentroidAlgorithm.
Definition at line 247 of file centroiders.cpp.