Initial stellarsolver implementation

This commit is contained in:
2024-09-17 23:05:27 +02:00
parent 30960033c5
commit da79197376
11 changed files with 182 additions and 35 deletions
+6 -6
View File
@@ -35,7 +35,7 @@ public:
QString toString() const;
};
class WCSData
class WCSDataT
{
int nwcs = 0;
struct wcsprm *wcs = nullptr;
@@ -43,10 +43,10 @@ class WCSData
int height;
void freeWCS();
public:
WCSData(int width, int height, char *header, int nrec);
WCSData(int width, int height, const QVector<FITSRecord> &header);
WCSData(const WCSData &) = delete;
~WCSData();
WCSDataT(int width, int height, char *header, int nrec);
WCSDataT(int width, int height, const QVector<FITSRecord> &header);
WCSDataT(const WCSDataT &) = delete;
~WCSDataT();
bool pixelToWorld(const QPointF &pixel, SkyPoint &point) const;
bool worldToPixel(const SkyPoint &point, QPointF &pixel) const;
void calculateBounds(double &minRa, double &maxRa, double &minDec, double &maxDec, double &crVal1, double &crVal2) const;
@@ -57,7 +57,7 @@ struct ImageInfoData
{
QVector<FITSRecord> fitsHeader;
QVector<QPair<QString, QString>> info;
std::shared_ptr<WCSData> wcs;
std::shared_ptr<WCSDataT> wcs;
};
Q_DECLARE_METATYPE(ImageInfoData);