LOST 0.0.1
LOST: Open-source Star Tracker
Loading...
Searching...
No Matches
centroiders.hpp
Go to the documentation of this file.
1#ifndef CENTROID_H
2#define CENTROID_H
3
4#include "star-utils.hpp"
5
6namespace lost {
7
10public:
16 virtual Stars Go(unsigned char *image, int imageWidth, int imageHeight) const = 0;
17
18 virtual ~CentroidAlgorithm() { };
19};
20
23public:
24 explicit DummyCentroidAlgorithm(int numStars) : numStars(numStars) { };
25 Stars Go(unsigned char *image, int imageWidth, int imageHeight) const override;
26private:
27 int numStars;
28};
29
35public:
37 Stars Go(unsigned char *image, int imageWidth, int imageHeight) const override;
38};
39
45 public:
47 Stars Go(unsigned char *image, int imageWidth, int imageHeight) const override;
48};
49
50}
51
52#endif
Stars Go(unsigned char *image, int imageWidth, int imageHeight) const override
Actually perform the centroid detection.
An algorithm that detects the (x,y) coordinates of bright points in an image, called "centroids".
virtual Stars Go(unsigned char *image, int imageWidth, int imageHeight) const =0
Actually perform the centroid detection.
Stars Go(unsigned char *image, int imageWidth, int imageHeight) const override
Actually perform the centroid detection.
DummyCentroidAlgorithm(int numStars)
Stars Go(unsigned char *image, int imageWidth, int imageHeight) const override
Actually perform the centroid detection.
LOST starting point.
std::vector< Star > Stars