48 const uint8_t *
data {
nullptr};
95 static Measurement
measure(
const Image &image,
double referenceArea = 0);
101 void setLock(
double x,
double y);
129 bool addMeasurement(
const Measurement &measurement,
double time,
double window, Report &report);
134 bool m_HasLock {
false};
137 double m_LockArea {0};
139 bool m_WindowOpen {
false};
140 double m_WindowStart {0};
141 uint32_t m_Samples {0};
142 uint32_t m_ValidSamples {0};
145 double m_SumQuality {0};
The FrameTracker class measures where a bright extended target (planet, Moon or Sun disk) sits in a v...
void setLock(double x, double y)
Lock to an explicit position. Restarts the averaging window.
static Measurement measure(const Image &image, double referenceArea=0)
measure Find the target in a single frame.
void reset()
Drop the lock point and the current averaging window.
bool addMeasurement(const Measurement &measurement, double time, double window, Report &report)
addMeasurement Add a measurement to the averaging window.
Namespace to encapsulate INDI client, drivers, and mediator classes.
bool bayer
Raw Bayer mosaic: binning is kept even so each bin averages whole CFA cells.
size_t bytesPerComponent
1 for 8-bit, 2 for 16-bit (native endian) samples
size_t components
1 for mono or Bayer, 3 for interleaved RGB
double quality
0 (unusable) to 1 (clean, well separated disk)
double area
Blob area in frame pixels.
double x
Centroid in frame pixels.
double offsetX
Averaged centroid minus lock point.
double quality
Mean quality of the valid samples, scaled by the fraction of samples that were valid.
double windowStart
Time of the first sample in the window.
bool valid
False if no sample in the window was valid (target lost).
uint32_t samples
Number of samples in the window.
double x
Averaged centroid in frame pixels.