Changeset 13593 for trunk/ppMerge
- Timestamp:
- Jun 1, 2007, 6:16:29 PM (19 years ago)
- Location:
- trunk/ppMerge/src
- Files:
-
- 3 edited
-
ppMergeCombine.c (modified) (1 diff)
-
ppMergeOptions.c (modified) (5 diffs)
-
ppMergeOptions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeCombine.c
r12991 r13593 165 165 // If the mask value is set, we want to generate a mask 166 166 if (options->combine->maskVal) { 167 pmReadoutSetMask(stack->data[i] );167 pmReadoutSetMask(stack->data[i], options->satMask, options->badMask); 168 168 } 169 169 -
trunk/ppMerge/src/ppMergeOptions.c
r13246 r13593 59 59 options->combine->maskVal = 0xff; 60 60 options->combine->weights = false; 61 options->satMask = 0x00; 62 options->badMask = 0x00; 61 63 62 64 return options; … … 141 143 OPTION_PARSE(options->combine->fracLow, recipe, "FRACLOW", F32); 142 144 OPTION_PARSE(options->combine->nKeep, recipe, "NKEEP", S32); 143 OPTION_PARSE(options->combine->maskVal, recipe, "MASKVAL", S32);144 145 OPTION_PARSE(options->combine->weights, recipe, "WEIGHTS", Bool); 145 146 OPTION_PARSE(options->fringeNum, recipe, "FRINGE.NUM", S32); … … 153 154 OPTION_PARSE(options->maskBad, recipe, "MASK.BAD", F32); 154 155 156 const char *masks = psMetadataLookupStr(NULL, recipe, "MASKVAL"); 157 options->combine->maskVal = pmConfigMask(masks, config); 158 155 159 options->combine->combine = parseStat(recipe, "COMBINE"); 156 160 options->mean = parseStat(recipe, "MEAN"); … … 238 242 } 239 243 240 241 244 #if 0 242 245 // Or you can set them individually … … 249 252 OPTION_PARSE(options->onOff, config->arguments, "-onoff", S32); 250 253 254 // Masking options 255 options->satMask = pmConfigMask("SAT", config); 256 options->badMask = pmConfigMask("BAD", config); 257 251 258 return options; 252 259 } -
trunk/ppMerge/src/ppMergeOptions.h
r9996 r13593 39 39 ppOnOff onOff; // On/off pairs? 40 40 pmCombineParams *combine; // Combination parameters 41 psMaskType satMask; // Mask value for saturated pixels 42 psMaskType badMask; // Mask value for bad (low) pixels 41 43 } ppMergeOptions; 42 44
Note:
See TracChangeset
for help on using the changeset viewer.
