1 #define M_PI 3.14159265358979323846 3 #define DEG_RAD(x) (((x) * M_PI) / 180.0) 4 #define RAD_DEG(x) (((x) * 180.0) / M_PI) 7 #define DOUBLE (ALPHA|DIGIT|SIGNED|DOT) 10 #define INTIMG 0 // 16 bit unsigned image 11 #define RGBIMG 1 // Color image (RGB) 12 #define FLTIMG 2 // float image 15 #define EMEM -1 // Memory allocation error 16 #define SYNER -2 // Format or type inexistent 17 #define EIMAX -3 // Too images 20 #define SSHOW 1 // Image is showed 21 #define SICLOSE 2 // Can't close image via X on window 29 #define UMAT 0 // Unsigned matrix 30 #define RMAT 1 // Red channel matrix 31 #define GMAT 2 // Green channel matrix 32 #define BMAT 3 // Blue channel matrix 33 #define FMAT 4 // Float matrix 34 #define CMAT 5 // Complex matrix 35 #define ARGB 6 // RGB average 77 #define TST_TRIANGLE 2 78 #define TST_LOGARITMIC 3 80 #define TST_SQUARE_F 5 87 #define CNV_LOWPASS_0 0 88 #define CNV_LOWPASS_1 1 89 #define CNV_LOWPASS_2 2 90 #define CNV_LOWPASS_3 3 91 #define CNV_LOWPASS_4 4 92 #define CNV_LOWPASS_5 5 93 #define CNV_LOWPASS_6 6 94 #define CNV_LOWPASS_7 7 96 #define CNV_HIGHPASS_0 32 97 #define CNV_HIGHPASS_1 33 98 #define CNV_HIGHPASS_2 34 99 #define CNV_HIGHPASS_3 35 100 #define CNV_HIGHPASS_4 36 101 #define CNV_HIGHPASS_5 37 102 #define CNV_HIGHPASS_6 38 103 #define CNV_HIGHPASS_7 39 105 #define CNV_EDGE_0 64 106 #define CNV_EDGE_1 65 107 #define CNV_EDGE_2 66 108 #define CNV_EDGE_3 67 109 #define CNV_EDGE_4 68 110 #define CNV_EDGE_5 69 111 #define CNV_EDGE_6 70 112 #define CNV_EDGE_7 71 115 #define MAXFLT 1E6 // Max floating point number 116 #define MAXZOOM 64 // Max zoom factor 117 #define MAXIMG 128 // Max images number (open at same time) 118 #define WINUM 8 // Maximum opened window on the same image 119 #define FLAGNUM 8 // Maximum flags on the image 120 #define MAXUNDO 32 // Maximum undo operations 129 #define DI_WINCOPY 1 // Copy the window settings 130 #define DI_COPYCONT 2 // Copy the window contents 157 #define SET2D_POINTS 4 162 #define MC_SHELL 1 // Shell color 163 #define MC_FORM 2 // Form color 171 #define DIF_STAT 1 // Low, High, ILow, IHigh, Media, Sigma, MaxNumbers 172 #define DIF_CAMERA 2 // CCD, PTF, OFF, GAIN, RANGE, SEXP, TAMB, TCCD, BINH, BINL, SX, SY, WX, WY 173 #define DIF_TIME 3 // DATE, TIME 174 #define DIF_USER 4 // FLEN, DIAMETER, AIRMASS, OBSERVER, FILTER, NOTES 175 #define DIF_ETIME 5 // Elapsed Time between images 176 #define DIF_PALETTE 6 // Palette inside the file 178 #define MIN_IMG_DIM 380 // Minimum image dimension for readout cursor 181 #define Image DIL.Img.Mat 183 #define SRV DIL.Img.IServer 186 #define UWrMat(s, x, y, v) DIL.Img.Mat[s].Imat[(long) DIL.Img.Idx[s] * (y) + (x)] = (v) 187 #define RWrMat(s, x, y, v) DIL.Img.Mat[s].Rmat[(long) DIL.Img.Idx[s] * (y) + (x)] = (v) 188 #define GWrMat(s, x, y, v) DIL.Img.Mat[s].Gmat[(long) DIL.Img.Idx[s] * (y) + (x)] = (v) 189 #define BWrMat(s, x, y, v) DIL.Img.Mat[s].Bmat[(long) DIL.Img.Idx[s] * (y) + (x)] = (v) 190 #define FWrMat(s, x, y, v) DIL.Img.Mat[s].Fmat[(long) DIL.Img.Idx[s] * (y) + (x)] = (v) 191 #define _WrMat(s, x, y, v) DIL.Img.Mat[s].cmplx[y][x] = v 192 #define URdMat(s, x, y) DIL.Img.Mat[s].Imat[(long) DIL.Img.Idx[s] * (y) + (x)] 193 #define RRdMat(s, x, y) DIL.Img.Mat[s].Rmat[(long) DIL.Img.Idx[s] * (y) + (x)] 194 #define GRdMat(s, x, y) DIL.Img.Mat[s].Gmat[(long) DIL.Img.Idx[s] * (y) + (x)] 195 #define BRdMat(s, x, y) DIL.Img.Mat[s].Bmat[(long) DIL.Img.Idx[s] * (y) + (x)] 196 #define FRdMat(s, x, y) DIL.Img.Mat[s].Fmat[(long) DIL.Img.Idx[s] * (y) + (x)] 197 #define _RdMat(s, x, y) DIL.Img.Mat[s].cmplx[y][x] 202 #define _MAX_PATH 1024 208 typedef unsigned char U8;
211 typedef short unsigned U16;
212 typedef unsigned long U32;
219 #define C_DEF extern "C" 487 int CCol, CRow, CWx,
CWy, CScroll, CDsp;
498 int LensWx, LensWy, LWx,
LWy;
587 #define VM_UPDATE_TIME 100L 718 char bincomment[255];
unsigned int imgmin
Image minimum value.
int ccdwy
Total Number of Y Pixels.
int ccdwx
Total Number of X Pixels.
double imgavg
Image average value.
int nom
number of measurements (averaging)
float ccdtemp
CCD Temperature.
unsigned char U8
1 byte without sign, range 0-255
short unsigned U16
2 byte without sign, range 0-65535
unsigned int s_alt
station altitude
float s_longitude
station longitude
unsigned int data[576]
Conversion data buffer 64 samples * 8 channels * 2 bytes.
unsigned long U32
4 byte without sign, range 0-4294967295
int imgfmt
Image format: 0 = ASCII, 1 = BIN.
int ccdnr
Row number (ccdyoff-ccdwx)/ccdvbin.
float s_sza
sun solar zenith angles
double imgsig
Image standard deviation value.
float s_latitude
station latitude
long S32
4 byte with sign, range +2147483647-2147483647
struct shellinfo shellinfo
short int S16
2 byte with sign, -32768+32767
const char * filpos
Filter position.
struct histogram histogram
int lambda
wavelength value
float ccdtexp
ccd Exposure time
unsigned int imgmax
Image maximum value.
int ccdvbin
Vertical binning value.