Changeset 18217 for trunk/ppImage/src/ppImageReplaceBackground.c
- Timestamp:
- Jun 19, 2008, 4:54:30 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageReplaceBackground.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageReplaceBackground.c
r16821 r18217 28 28 psMaskType maskVal = options->satMask | options->badMask | options->flatMask | options->blankMask; 29 29 30 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 31 psMetadataAddU8 (recipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskVal); 32 30 33 float meanValue = psMetadataLookupF32 (&status, recipe, "SKY_MEAN"); 34 bool replaceSkyMean = psMetadataLookupBool (&status, recipe, "REPLACE.SKY_MEAN"); 31 35 32 36 // iterate over the cells and readout for this chip … … 68 72 for (int ix = 0; ix < image->numCols; ix++) { 69 73 if (!(mask->data.U8[iy][ix] && maskVal)) continue; 70 if ( 1) {74 if (replaceSkyMean) { 71 75 image->data.F32[iy][ix] = meanValue; 72 76 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
