Working solver

This commit is contained in:
2024-09-20 14:34:21 +02:00
parent c8898387fe
commit dccb2e88da
9 changed files with 506 additions and 50 deletions
+26 -3
View File
@@ -3,20 +3,43 @@
#include <stellarsolver.h>
class RawImage;
class Solver : public QObject
{
Q_OBJECT
std::unique_ptr<StellarSolver> _solver;
StellarSolver *_solver;
FITSImage::Statistic _stats;
SSolver::ProcessType _process = SSolver::SOLVE;
bool _loaded = false;
QString _path;
QString _error;
std::shared_ptr<RawImage> _rawImage;
public:
explicit Solver(QObject *parent = nullptr);
~Solver();
bool solveImage(const QString &path);
FITSImage::Solution getSolution() const;
void setIndexFolders(const QStringList &list);
bool loadImage(const QString &path);
bool loadImage(std::shared_ptr<RawImage> &image, const QString &path);
bool solveImage();
bool extractSources(bool hfr);
const FITSImage::Solution& getSolution() const;
const QList<FITSImage::Star>& getStars() const;
double getHFR() const;
QString errorMessage() const;
void updateHeader();
void setParameters(SSolver::Parameters::ParametersProfile profile);
void setParameters(const SSolver::Parameters &parameters);
static QStringList getIndexPaths();
static QString getTenmonIndexPath();
public slots:
void finished();
signals:
void solvingDone();
void extractionDone();
};
#endif // SOLVER_H