Changeset 15862 for trunk/ppMerge/src/ppMergeOptions.c
- Timestamp:
- Dec 16, 2007, 12:20:45 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeOptions.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeOptions.c
r15476 r15862 50 50 options->maskSuspect = 5.0; 51 51 options->maskBad = 10.0; 52 options->maskMode = PM_MASK_ID_VALUE; 52 53 options->onOff = 0; 53 54 options->combine = pmCombineParamsAlloc(PS_STAT_SAMPLE_MEAN); … … 235 236 } 236 237 238 const char *maskMode = psMetadataLookupStr(NULL, recipe, "MASK.MODE"); // The type of calibration frame 239 if (!maskMode) { 240 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "No mask mode specified in recipe."); 241 psFree(options); 242 return NULL; 243 } 244 245 options->maskMode = pmMaskIdentifyModeFromString (maskMode); 246 if (options->maskMode == PM_MASK_ID_NONE) { 247 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "invalid mask mode %s.", maskMode); 248 psFree(options); 249 return NULL; 250 } 251 237 252 #if 0 238 253 // Or you can set them individually
Note:
See TracChangeset
for help on using the changeset viewer.
