Changeset 18909 for trunk/ppImage/src/ppImageLoop.c
- Timestamp:
- Aug 4, 2008, 5:47:15 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageLoop.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageLoop.c
r18724 r18909 11 11 } 12 12 13 bool ppImageLoop (pmConfig *config, ppImageOptions *options) {14 13 bool ppImageLoop (pmConfig *config, ppImageOptions *options) 14 { 15 15 bool status; 16 16 pmChip *chip; … … 27 27 exit(PS_EXIT_PROG_ERROR); 28 28 } 29 30 #if 1 31 { 32 pmConfigCamerasCull(config); 33 pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS"); 34 35 const char *outroot = psMetadataLookupStr(NULL, config->arguments, "OUTPUT"); // Output root name 36 psAssert(outroot, "Should be there, we put it there!"); 37 pmConfigDump(config, input->fpa, outroot); 38 } 39 #endif 29 40 30 41 pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest … … 63 74 } 64 75 65 // XXX set the options->*Mask values here (after the mask images have been loaded66 // and before any of the value are used)67 if (!ppImageSetMaskBits (config, options)) 68 ESCAPE ("Unable to set bit masks");76 // XXX set the options->*Mask values here (after the mask images have been loaded 77 // and before any of the value are used) 78 if (!ppImageSetMaskBits (config, options)) 79 ESCAPE ("Unable to set bit masks"); 69 80 70 81 // perform the detrend analysis 71 if (!ppImageDetrendReadout(config, options, view)) 72 ESCAPE ("Unable to detrend readout");82 if (!ppImageDetrendReadout(config, options, view)) 83 ESCAPE ("Unable to detrend readout"); 73 84 } 74 85 } … … 76 87 // Apply the fringe correction 77 88 if (options->doFringe) { 78 if (!ppImageDetrendFringeApply (config, chip, view, options)) 79 ESCAPE ("Unable to defringe");80 }81 82 // measure various statistics for this image83 if (!ppImagePixelStats (config, options, view)) 84 ESCAPE ("Unable to measures stats for image");89 if (!ppImageDetrendFringeApply (config, chip, view, options)) 90 ESCAPE ("Unable to defringe"); 91 } 92 93 // measure various statistics for this image 94 if (!ppImagePixelStats (config, options, view)) 95 ESCAPE ("Unable to measures stats for image"); 85 96 86 97 if (!ppImageMosaicChip(config, options, view, "PPIMAGE.CHIP", "PPIMAGE.OUTPUT")) … … 92 103 } 93 104 94 // replace the masked pixels with the background level95 if (options->replaceMasked) {96 if (!ppImageReplaceBackground (config, view, options)) 97 ESCAPE ("Unable to replace masked pixels with background level");98 }105 // replace the masked pixels with the background level 106 if (options->replaceMasked) { 107 if (!ppImageReplaceBackground (config, view, options)) 108 ESCAPE ("Unable to replace masked pixels with background level"); 109 } 99 110 100 // binning (used for display) must take place after the background is replaced, if desired111 // binning (used for display) must take place after the background is replaced, if desired 101 112 if (!ppImageRebinChip(config, view, options, "PPIMAGE.BIN1")) 102 113 ESCAPE ("Unable to bin chip (level 1)."); … … 129 140 130 141 if (psTraceGetLevel("ppImage") >= 3) { 131 ppImageFileCheck (config);142 ppImageFileCheck (config); 132 143 } 133 144
Note:
See TracChangeset
for help on using the changeset viewer.
