13#include "starcorrespondence.h"
15#include "calibration.h"
55 QVector3D selectGuideStar(
const QSharedPointer<FITSData> &imageData);
59 GuiderUtils::Vector findGuideStar(
const QSharedPointer<FITSData> &imageData,
const QRect &trackingBox,
60 QSharedPointer<GuideView> &guideView,
bool firstFrame);
67 bool getDrift(
double oneStarDrift,
double reticle_x,
double reticle_y,
68 double *RADrift,
double *DECDrift);
71 void setCalibration(
const Calibration &calibration);
74 const SkyBackground &skybackground()
const
78 double getGuideStarMass()
const
82 double getGuideStarSNR()
const
87 int getNumStarsDetected()
const
89 return m_NumStarsDetected;
92 int getNumReferencesFound()
const
94 return starCorrespondence.getNumReferencesFound();
97 int getNumReferences()
const
99 return starCorrespondence.size();
104 starCorrespondence.reset();
110 void setupStarCorrespondence(
const QList<Edge> &neighbors,
int guideIndex);
114 void evaluateSEPStars(
const QList<Edge *> &starCenters, QVector<double> *scores,
115 const QRect *roi,
const double maxHFR)
const;
118 SSolver::Parameters getStarExtractionParameters(
int num);
121 void findTopStars(
const QSharedPointer<FITSData> &imageData,
int num, QList<Edge> *stars,
123 const QRect *roi =
nullptr,
124 QList<double> *outputScores =
nullptr,
125 QList<double> *minDistances =
nullptr);
127 int findAllSEPStars(
const QSharedPointer<FITSData> &imageData, QList<Edge*> *sepStars,
int num);
130 GuiderUtils::Vector point2arcsec(
const GuiderUtils::Vector &p)
const;
133 void computeStarDrift(
const Edge &star,
const Edge &reference,
134 double *driftRA,
double *driftDEC)
const;
137 QVector3D selectGuideStar(
const QList<Edge> &detectedStars,
138 const QList<double> &sepScores,
140 const QList<double> &minDistances);
143 double findMinDistance(
int index,
const QList<Edge*> &stars);
146 void plotStars(QSharedPointer<GuideView> &guideView,
const QRect &trackingBox);
149 void setDetectedStars(
const QList<Edge> &stars)
151 detectedStars = stars;
153 void setSkyBackground(
const SkyBackground &background)
155 skyBackground = background;
157 void setStarMap(
const QVector<int> &map)
161 int getStarMap(
int index);
165 SkyBackground skyBackground;
168 StarCorrespondence starCorrespondence;
172 double guideStarMass = 0;
173 double guideStarSNR = 0;
176 QVector<int> starMap;
178 QList<Edge> detectedStars;
180 Calibration calibration;
181 bool calibrationInitialized {
false};
184 bool allowMissingGuideStar {
true };
186 int unreliableDectionCounter { 0 };
188 int m_NumStarsDetected { 0 };
190 friend class TestGuideStars;
The main change relative to fitsview is to add the capability of displaying the 'neighbor guide stars...
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)