forked from rlancaste/stellarsolver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructuredefinitions.h
68 lines (60 loc) · 1.47 KB
/
structuredefinitions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* Structure Definitions for SexySolver Library, developed by Robert Lancaster, 2020
This application is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
*/
#ifndef STRUCTUREDEFINITIONS_H
#define STRUCTUREDEFINITIONS_H
//system includes
#include "stdint.h"
#include <QString>
/// Stats struct to hold statisical data about the FITS data
typedef struct
{
double min[3] = {0}, max[3] = {0};
double mean[3] = {0};
double stddev[3] = {0};
double median[3] = {0};
double SNR { 0 };
// Superceded by dataType.
// int bitpix { 8 };
/// FITS image data type (SEP_TBYTE, TUSHORT, TINT, TFLOAT, TLONG, TDOUBLE)
uint32_t dataType { 0 };
int bytesPerPixel { 1 };
int ndim { 2 };
int64_t size { 0 };
uint32_t samples_per_channel { 0 };
uint16_t width { 0 };
uint16_t height { 0 };
} Statistic;
typedef struct
{
float x;
float y;
float mag;
float flux;
float peak;
float HFR;
float a;
float b;
float theta;
} Star;
typedef struct
{
double fieldWidth;
double fieldHeight;
double ra;
double dec;
QString rastr;
QString decstr;
double orientation;
double pixscale;
QString parity;
} Solution;
enum Shape{
SHAPE_AUTO,
SHAPE_CIRCLE,
SHAPE_ELLIPSE
};
#endif // STRUCTUREDEFINITIONS_H