Changeset 9871
- Timestamp:
- Nov 6, 2006, 6:12:46 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageLoop.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageLoop.c
r9857 r9871 101 101 102 102 // Apply the fringe correction 103 psTrace("ppImage", 3, "Applying fringe correction...\n"); 104 bool mdok; // Status of MD lookup 105 pmFPAfile *fringeFile = psMetadataLookupPtr(&mdok, config->files, "PPIMAGE.FRINGE"); 106 pmCell *fringeCell = pmFPAviewThisCell(view, fringeFile->fpa); 107 psImage *fringe = ppImageDetrendFringeGenerate(cell, fringeCell, fringeSoln); 108 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 109 if (!readout->data_exists) { continue; } 103 if (options->doFringe) { 104 psTrace("ppImage", 3, "Applying fringe correction...\n"); 105 bool mdok; // Status of MD lookup 106 pmFPAfile *fringeFile = psMetadataLookupPtr(&mdok, config->files, "PPIMAGE.FRINGE"); 107 pmCell *fringeCell = pmFPAviewThisCell(view, fringeFile->fpa); 108 psImage *fringe = ppImageDetrendFringeGenerate(cell, fringeCell, fringeSoln); 109 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 110 if (!readout->data_exists) { continue; } 110 111 111 // XXX: Make generic, so subregions may be subtracted as well112 psBinaryOp(readout->image, readout->image, "-", fringe);112 // XXX: Make generic, so subregions may be subtracted as well 113 psBinaryOp(readout->image, readout->image, "-", fringe); 113 114 114 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false; 115 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false; 116 } 117 psFree(fringe); 115 118 } 116 psFree(fringe);117 118 119 119 120 // Perform statistics on the detrended cell
Note:
See TracChangeset
for help on using the changeset viewer.
