MIDI Pipeline Reference Manual  2.8.3
imageProcessing.h
1 /**********************************************************
2 ***********************************************************
3 * European Southern Observatory
4 * VLTI MIDI Maintenance Templates Software
5 *
6 * Module name: imageProcessing.h
7 * Description:
8 *
9 *
10 * History:
11 * 14-Jun-04 (csabet) Created
12 ***********************************************************
13 **********************************************************/
14 #ifndef _IMAGE_PROCESSING_H
15 #define _IMAGE_PROCESSING_H
16 
17 /**********************************************************
18 * Include files
19 **********************************************************/
20 
21 /**********************************************************
22 * Constant definitions
23 **********************************************************/
24 
25 /**********************************************************
26 * Enumeration definitions
27 **********************************************************/
28 
29 /**********************************************************
30 * Type definitions
31 **********************************************************/
32 
33 /**********************************************************
34 * Function Prototypes
35 **********************************************************/
36 float midiGaussianSmooth (
37  float *array,
38  int length,
39  int peakIn,
40  int searchSpan,
41  int *error);
42 
43 void normalizeSignal (
44  int arraySize,
45  float *signal);
46 
47 void computeFrameFlux (
48  short int *inData,
49  int frame,
50  int scalingOffset,
51  ImageFormat *format,
52  MidiCoords *target,
53  float *flux,
54  int *pixelCount,
55  int *error);
56 
57 void computeImageFlux (
58  float *image,
59  ImageFormat *format,
60  MidiCoords *target,
61  float *flux,
62  int *pixelCount,
63  int *error);
64 
65 void createAveragedImage (
66  short int *inData,
67  float scalingOffset,
68  ImageFormat *format,
69  float *image);
70 
71 void createFitsImage (
72  const char *regionOrFile,
73  const char *name,
74  char *inFitsName,
75  int xLength,
76  int yLength,
77  float *image);
78 
79 void midiGaussianFit (
80  int counter,
81  int dimension,
82  float *image,
83  int xImage,
84  int yImage,
85  int xP,
86  int yP,
87  int sizeP,
88  double *xT,
89  double *yT,
90  double *sizeXT,
91  double *sizeYT,
92  int *error);
93 
94 void midiGaussian_1d_fit (
95  float *array,
96  int length,
97  int sizeS,
98  float *centre,
99  float *sizeT,
100  float *fluxErr2Min,
101  int *error);
102 
103 void midiGetFWHM (
104  int imageCounter,
105  float *image,
106  int xImage,
107  int yImage,
108  int sizeP,
109  double *xT,
110  double *yT,
111  double *sizeXT,
112  double *sizeYT,
113  int *error);
114 
115 void getBadScansFromSpectrumUndisp (
116  FilterData *filterInfo,
117  ImageFormat *format,
118  CompressedData *compressed,
119  int *error);
120 
121 void rejectScansOnWeakSNRUndisp (
122  FilterData *filterInfo,
123  ImageFormat *format,
124  CompressedData *compressed,
125  int *error);
126 
127 void removeSkyBackground (
128  const char *shutterId,
129  enum ProcessingMode processing,
130  ImageFormat *format,
131  CompressedData *compressed,
132  int *error);
133 
134 void getUndispersedPowerSpectrum (
135  ImageFormat *imageFormat,
136  CompressedData *compressed);
137 
138 long correctTarType (
139  const char *shutterId,
140  char *tarType,
141  float *TimeStamp,
142  int length,
143  int *error);
144 
145 /*********************************************************/
146 #endif
147 /*********************************************************/
148 /*********************************************************/
149