Changeset 35531 for trunk/ppImage/src/ppImageOptions.c
- Timestamp:
- May 7, 2013, 4:01:35 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageOptions.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageOptions.c
r35081 r35531 10 10 // psFree(options->nonLinearData); 11 11 // psFree(options->nonLinearSource); 12 psFree(options->auxVideoMask); 12 13 } 13 14 … … 24 25 options->doVarianceBuild = false; // Build internal variance 25 26 options->doMask = false; // Mask bad pixels 27 options->doAuxMask = false; // apply auxillary mask 26 28 options->doNonLin = false; // Non-linearity correction 27 29 options->doOverscan = false; // Overscan subtraction … … 116 118 options->normClass = NULL; // per-class normalizations refer to this class 117 119 120 options->auxVideoMask = NULL; // auxillary video mask file name 121 118 122 return options; 119 123 } … … 228 232 options->doMaskBurntool = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL"); 229 233 options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD"); 234 options->doAuxMask = psMetadataLookupBool(NULL, recipe, "MASK.AUXMASK"); 235 if (options->doAuxMask) { 236 // if we are applying an auxiliary mask we can optionally apply another 237 // mask to video cells only. 238 psString auxVideoMask = psMetadataLookupStr(NULL, recipe, "AUX.VIDEO.MASK"); 239 // save the value if defined and not the value "NULL" 240 if (auxVideoMask && strcmp(auxVideoMask, "NULL")) { 241 options->auxVideoMask = psStringCopy(auxVideoMask); 242 } 243 } 230 244 231 245 // Mask recipe options (note that mask bit values are set in ppImageSetMaskBits.c)
Note:
See TracChangeset
for help on using the changeset viewer.
