Changeset View
Changeset View
Standalone View
Standalone View
kstars/fitsviewer/fitsstardetector.h
Show All 25 Lines | |||||
26 | 26 | | |||
27 | #include "fitsdata.h" | 27 | #include "fitsdata.h" | ||
28 | 28 | | |||
29 | class FITSData; | 29 | class FITSData; | ||
30 | 30 | | |||
31 | class Edge | 31 | class Edge | ||
32 | { | 32 | { | ||
33 | public: | 33 | public: | ||
34 | virtual ~Edge() = default; | ||||
34 | float x {0}; | 35 | float x {0}; | ||
35 | float y {0}; | 36 | float y {0}; | ||
36 | int val {0}; | 37 | int val {0}; | ||
37 | int scanned {0}; | 38 | int scanned {0}; | ||
38 | float width {0}; | 39 | float width {0}; | ||
39 | float HFR {-1}; | 40 | float HFR {-1}; | ||
40 | float sum {0}; | 41 | float sum {0}; | ||
41 | }; | 42 | }; | ||
42 | 43 | | |||
44 | class BahtinovEdge : public Edge | ||||
45 | { | ||||
46 | public: | ||||
47 | virtual ~BahtinovEdge() = default; | ||||
48 | QVector<QLineF> line; | ||||
49 | QPointF offset; | ||||
50 | }; | ||||
51 | | ||||
43 | class FITSStarDetector : public QObject | 52 | class FITSStarDetector : public QObject | ||
44 | { | 53 | { | ||
45 | Q_OBJECT | 54 | Q_OBJECT | ||
46 | 55 | | |||
47 | public: | 56 | public: | ||
48 | /** @brief Instantiate a detector for a FITS data file. | 57 | /** @brief Instantiate a detector for a FITS data file. | ||
49 | */ | 58 | */ | ||
50 | explicit FITSStarDetector(FITSData *parent): | 59 | explicit FITSStarDetector(FITSData *parent): | ||
Show All 28 Lines |