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

A more complicated centroid algorithm which doesn't perform much better than CenterOfGravityAlgorithm. More...

#include <centroiders.hpp>

Inheritance diagram for lost::IterativeWeightedCenterOfGravityAlgorithm:
Collaboration diagram for lost::IterativeWeightedCenterOfGravityAlgorithm:

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ IterativeWeightedCenterOfGravityAlgorithm()

lost::IterativeWeightedCenterOfGravityAlgorithm::IterativeWeightedCenterOfGravityAlgorithm ( )
inline

Definition at line 49 of file centroiders.hpp.

Member Function Documentation

◆ Go()

Stars lost::IterativeWeightedCenterOfGravityAlgorithm::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 247 of file centroiders.cpp.

Here is the call graph for this function:

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