Changeset 5862 for trunk/ppMerge/src/ppMerge.h
- Timestamp:
- Dec 30, 2005, 6:32:45 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMerge.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMerge.h
r5860 r5862 1 #include <stdio.h> 2 #include <strings.h> 1 # include <stdio.h> 2 # include <strings.h> 3 # include <glob.h> 3 4 4 # include "pslib.h"5 # include "pslib.h" 5 6 6 # include "psAdditionals.h"7 # include "psAdditionals.h" 7 8 8 # include "pmAstrometry.h"9 # include "pmReadout.h"10 # include "pmConfig.h"11 # include "pmFPAConstruct.h"12 # include "pmFPARead.h"13 # include "pmFPAConceptsGet.h"14 # include "pmFPAWrite.h"9 # include "pmAstrometry.h" 10 # include "pmReadout.h" 11 # include "pmConfig.h" 12 # include "pmFPAConstruct.h" 13 # include "pmFPARead.h" 14 # include "pmFPAConceptsGet.h" 15 # include "pmFPAWrite.h" 15 16 16 #include "pmFlatField.h" 17 #include "pmMaskBadPixels.h" 18 #include "pmNonLinear.h" 19 #include "pmSubtractBias.h" 20 #include "pmChipMosaic.h" 21 //#include "pmFPAMorph.h" 17 # include "pmReadoutCombine.h" 22 18 23 # define RECIPE "PHASE2"// Name of the recipe to use19 # define RECIPE "MERGE" // Name of the recipe to use 24 20 21 // XXX : same as in ppImage 25 22 typedef enum { 26 23 PP_LOAD_NONE, … … 30 27 } ppImageLoadDepth; 31 28 29 // XXX : same as in ppImage 32 30 typedef struct { 33 31 psMetadata *site; … … 48 46 49 47 typedef struct { 50 psArray *data; 48 psArray *input; 49 ppFPA *output; 51 50 ppFPA *process; 52 51 ppFPA *mask; … … 55 54 typedef struct { 56 55 ppImageLoadDepth imageLoadDepth; 57 58 psStats *mergeStats; // Statistics for overscan 59 void *overscanFit; // Overscan fit (polynomial or spline) 60 pmFit overscanFitType; // Fit type for overscan 61 pmOverscanAxis overscanMode; // Axis for overscan 62 63 bool doNonLin; // Non-linearity correction 64 psDataType nonLinearType; 65 psMetadataItem *nonLinearData; 66 void *nonLinearSource; 56 bool doMask; // apply a pixel mask before stacking 57 pmCombineParams *combineParams; 58 bool applyZeroScale; 59 double gain; 60 double readnoise; 67 61 } ppOptions; 68 62 69 typedef struct { 70 pmCell *input; 71 pmCell *mask; 72 pmCell *bias; 73 pmCell *dark; 74 pmCell *flat; 75 } ppDetrend; 63 bool ppMergeConfig (ppConfig *config, int argc, char **argv); 64 bool ppMergeLoop (ppData *data, ppOptions *options, ppConfig *config); 65 bool ppMergeOptions (ppData *data, ppOptions *options, ppConfig *config); 66 bool ppMergeOutput (ppData *data, ppOptions *options, ppConfig *config); 67 bool ppMergeParseCamera (ppData *data, ppConfig *config); 68 bool ppMergeParseDetrend (ppData *data, ppOptions *options, ppConfig *config); 76 69 77 bool ppImageConfig (ppConfig *config, int argc, char **argv); 78 bool ppImageLoadPixels (ppFPA *input, ppFPA *process, psDB *db, int nChip, int nCell); 79 bool ppImageLoop (ppData *data, ppOptions *options, ppConfig *config); 80 bool ppImageOptions (ppData *data, ppOptions *options, ppConfig *config); 81 bool ppImageParseCamera (ppData *data, ppConfig *config, char **argv); 82 bool ppImageParseDetrend (ppData *data, ppOptions *options, ppConfig *config); 70 bool ppMergeCell (pmCell *output, pmCell *mask, psArray *cellList, ppOptions *options, ppConfig *config); 83 71 84 bool ppReadoutWeights (pmReadout *readout); 85 86 bool ppDetrendCell (ppDetrend *detrend, ppOptions *options, ppConfig *config); 87 88 bool ppDetrendMask (pmCell *cell, pmReadout *input, pmReadout *mask); 89 bool ppDetrendNonLinear (pmCell *cell, pmReadout *input, ppOptions *options); 90 bool ppDetrendNonLinearLookup (pmReadout *input, psMetadataItem *dataItem); 91 bool ppDetrendNonLinearPolynomial (pmReadout *input, psMetadataItem *dataItem); 92 bool ppDetrendBias (pmCell *inputCell, pmReadout *inputReadout, pmReadout *pedestal, ppOptions *options); 93 pmReadout* ppDetrendPedestal (pmReadout *pedestal, pmCell *input, pmReadout *bias, pmReadout *dark, float darkTime, ppOptions *options); 72 // XXX : these functions are identical to the ppImage equivalents 94 73 pmReadout* ppDetrendSelectFirst (pmCell *cell, char *name, bool doThis); 95 96 74 bool ppFPAOpen (ppFPA *fpa, psMetadata *camera, char *name, bool doThis); 75 bool ppMergeLoadPixels (ppFPA *input, ppFPA *process, psDB *db, int nChip, int nCell);
Note:
See TracChangeset
for help on using the changeset viewer.
