Changeset 18591 for trunk/ppStack/src/ppStackReadout.c
- Timestamp:
- Jul 16, 2008, 5:36:56 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackReadout.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackReadout.c
r18435 r18591 32 32 int iter = psMetadataLookupS32(NULL, config->arguments, "ITER"); // Rejection iterations 33 33 float combineRej = psMetadataLookupF32(NULL, config->arguments, "COMBINE.REJ"); // Combination threshold 34 psMaskType maskBad = psMetadataLookupU8(NULL, config->arguments, "MASK.BAD"); // Value to mask 35 psMaskType maskBlank = psMetadataLookupU8(NULL, config->arguments, "MASK.BLANK"); // Mask for blank reg. 36 // float threshold = psMetadataLookupF32(NULL, config->arguments, "THRESHOLD.MASK"); // Threshold for mask deconvolution 34 psMaskType maskVal = pmConfigMaskGet("BLANK", config); // Value to mask 37 35 bool useVariance = psMetadataLookupBool(&mdok, config->arguments, "VARIANCE"); // Use variance for rejection? 38 36 bool safe = psMetadataLookupBool(&mdok, config->arguments, "SAFE"); // Play safe when combining small numbers of pixels? … … 67 65 } 68 66 69 if (!pmStackCombine(outRO, stack, mask Bad, maskBlank, kernelSize, iter, combineRej, true,67 if (!pmStackCombine(outRO, stack, maskVal, maskVal, kernelSize, iter, combineRej, true, 70 68 useVariance, safe)) { 71 69 psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection."); … … 93 91 psRegionSet(0, outRO->image->numCols - 1, 94 92 0, outRO->image->numRows - 1), 95 mask Blank);93 maskVal); 96 94 psString name = NULL; // Name of image 97 95 psStringAppend(&name, "inspect_%03d_%03d.fits", sectionNum, i); … … 140 138 // Get the recipe values 141 139 bool mdok; // Status of MD lookup 142 psMaskType maskBad = psMetadataLookupU8(NULL, config->arguments, "MASK.BAD"); // Value to mask 143 psMaskType maskBlank = psMetadataLookupU8(NULL, config->arguments, "MASK.BLANK"); // Mask for blank reg. 140 psMaskType maskVal = pmConfigMaskGet("BLANK", config); // Value to mask 144 141 bool useVariance = psMetadataLookupBool(&mdok, config->arguments, "VARIANCE"); // Use variance for rejection? 145 142 … … 208 205 psRegionSet(0, outRO->image->numCols - 1, 209 206 0, outRO->image->numRows - 1), 210 mask Blank);207 maskVal); 211 208 psString name = NULL; // Name of image 212 209 psStringAppend(&name, "reject_%03d.fits", i); … … 220 217 #endif 221 218 222 if (!pmStackCombine(outRO, stack, mask Bad, maskBlank, 0, 0, NAN, numGood != num, useVariance, false)) {219 if (!pmStackCombine(outRO, stack, maskVal, maskVal, 0, 0, NAN, numGood != num, useVariance, false)) { 223 220 psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts."); 224 221 psFree(fpaList);
Note:
See TracChangeset
for help on using the changeset viewer.
