Changeset 15862
- Timestamp:
- Dec 16, 2007, 12:20:45 PM (18 years ago)
- Location:
- trunk/ppMerge/src
- Files:
-
- 3 edited
-
ppMergeMask.c (modified) (1 diff)
-
ppMergeOptions.c (modified) (2 diffs)
-
ppMergeOptions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeMask.c
r15663 r15862 110 110 111 111 pmReadout *roOut = pmReadoutAlloc(cellOut); // Output readout 112 roOut->mask = pmMaskIdentifyBadPixels(suspect, options-> maskBad, options->combine->maskVal);112 roOut->mask = pmMaskIdentifyBadPixels(suspect, options->combine->maskVal, filenames->n, options->maskBad, options->maskMode); 113 113 roOut->data_exists = cellOut->data_exists = chipOut->data_exists = true; 114 114 -
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 -
trunk/ppMerge/src/ppMergeOptions.h
r14356 r15862 37 37 float maskSuspect; // Threshold for identifying suspect pixels 38 38 float maskBad; // Threshold for identifying bad pixels 39 pmMaskIdentifyMode maskMode; // how to set the limit based on the threshold value above? 39 40 ppOnOff onOff; // On/off pairs? 40 41 pmCombineParams *combine; // Combination parameters
Note:
See TracChangeset
for help on using the changeset viewer.
