Changeset 7716 for trunk/ppImage/src
- Timestamp:
- Jun 27, 2006, 6:12:57 PM (20 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 2 edited
-
ppImageDetrendMask.c (modified) (2 diffs)
-
ppImageDetrendReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendMask.c
r7508 r7716 16 16 17 17 if (mask->image->type.type != PS_TYPE_MASK) { 18 image = psImageCopy (NULL, mask->image, PS_TYPE_MASK);18 image = psImageCopy (NULL, mask->image, PS_TYPE_MASK); 19 19 } else { 20 image = psMemIncrRefCounter (mask->image);20 image = psMemIncrRefCounter (mask->image); 21 21 } 22 22 … … 34 34 35 35 36 // XXX this function needs to use pmReadout SetMask to construct the initial mask36 // XXX this function needs to use pmReadoutGenerateMask to construct the initial mask 37 37 // then the pixels will correspond and pmMaskBadPixels can be correctly applied. 38 // this function should not have to lookup the value of CELL.SATURATION, nor should it have to 39 // apply it. 38 // this function should not have to lookup the value of CELL.SATURATION, nor should it have to 39 // apply it. -
trunk/ppImage/src/ppImageDetrendReadout.c
r7585 r7716 12 12 13 13 // create the target mask and weight images 14 pmReadout SetMaskWeight (input);14 pmReadoutGenerateMaskWeight (input); 15 15 16 16 // apply the externally supplied mask to the input->mask pixels 17 17 if (options->doMask) { 18 18 pmReadout *mask = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.MASK"); 19 pmMaskBadPixels (input, mask, options->maskValue);19 pmMaskBadPixels (input, mask, options->maskValue); 20 20 // ppImageDetrendMask(input, mask); 21 21 } … … 40 40 // Bias, dark and overscan subtraction are all merged. 41 41 if (options->doBias || options->doDark || options->doOverscan) { 42 if (!ppImageDetrendBias(input, bias, dark, options)) {43 return false;44 }42 if (!ppImageDetrendBias(input, bias, dark, options)) { 43 return false; 44 } 45 45 } 46 46 47 47 // Flat-field correction (no options used?) 48 48 if (options->doFlat) { 49 pmReadout *flat = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.FLAT");49 pmReadout *flat = pmFPAfileThisReadout (config->files, detview, "PPIMAGE.FLAT"); 50 50 if (!pmFlatField(input, flat)) { 51 return false;52 }51 return false; 52 } 53 53 } 54 54
Note:
See TracChangeset
for help on using the changeset viewer.
