00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _IMAGE_PROCESSING_H
00015 #define _IMAGE_PROCESSING_H
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 float midiGaussianSmooth (
00037 float *array,
00038 int length,
00039 int peakIn,
00040 int searchSpan,
00041 int *error);
00042
00043 void normalizeSignal (
00044 int arraySize,
00045 float *signal);
00046
00047 void computeFrameFlux (
00048 short int *inData,
00049 int frame,
00050 int scalingOffset,
00051 ImageFormat *format,
00052 MidiCoords *target,
00053 float *flux,
00054 int *pixelCount,
00055 int *error);
00056
00057 void computeImageFlux (
00058 float *image,
00059 ImageFormat *format,
00060 MidiCoords *target,
00061 float *flux,
00062 int *pixelCount,
00063 int *error);
00064
00065 void createAveragedImage (
00066 short int *inData,
00067 float scalingOffset,
00068 ImageFormat *format,
00069 float *image);
00070
00071 void createFitsImage (
00072 const char *regionOrFile,
00073 const char *name,
00074 char *inFitsName,
00075 int xLength,
00076 int yLength,
00077 float *image);
00078
00079 void midiGaussianFit (
00080 int counter,
00081 int dimension,
00082 float *image,
00083 int xImage,
00084 int yImage,
00085 int xP,
00086 int yP,
00087 int sizeP,
00088 double *xT,
00089 double *yT,
00090 double *sizeXT,
00091 double *sizeYT,
00092 int *error);
00093
00094 void midiGaussian_1d_fit (
00095 float *array,
00096 int length,
00097 int sizeS,
00098 float *centre,
00099 float *sizeT,
00100 float *fluxErr2Min,
00101 int *error);
00102
00103 void midiGetFWHM (
00104 int imageCounter,
00105 float *image,
00106 int xImage,
00107 int yImage,
00108 int sizeP,
00109 double *xT,
00110 double *yT,
00111 double *sizeXT,
00112 double *sizeYT,
00113 int *error);
00114
00115 void getBadScansFromSpectrumUndisp (
00116 FilterData *filterInfo,
00117 ImageFormat *format,
00118 CompressedData *compressed,
00119 int *error);
00120
00121 void rejectScansOnWeakSNRUndisp (
00122 FilterData *filterInfo,
00123 ImageFormat *format,
00124 CompressedData *compressed,
00125 int *error);
00126
00127 void removeSkyBackground (
00128 const char *shutterId,
00129 enum ProcessingMode processing,
00130 ImageFormat *format,
00131 CompressedData *compressed,
00132 int *error);
00133
00134 void getUndispersedPowerSpectrum (
00135 ImageFormat *imageFormat,
00136 CompressedData *compressed);
00137
00138 long correctTarType (
00139 const char *shutterId,
00140 char *tarType,
00141 float *TimeStamp,
00142 int length,
00143 int *error);
00144
00145
00146 #endif
00147
00148
00149