Changeset 20626
- Timestamp:
- Nov 9, 2008, 8:42:47 PM (18 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 3 edited
-
ppImage.h (modified) (1 diff)
-
ppImageDetrendReadout.c (modified) (1 diff)
-
ppImageOptions.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImage.h
r20618 r20626 84 84 float fringeKeep; // Fringe keep fraction 85 85 86 int remnanceSize; // Size for remnance detection 87 float remnanceThresh; // Threshold for remnance detection 86 88 } ppImageOptions; 87 89 -
trunk/ppImage/src/ppImageDetrendReadout.c
r20618 r20626 72 72 73 73 if (options->doRemnance) { 74 if (!pmRemnance(input, options->maskValue, options->badMask)) { 74 if (!pmRemnance(input, options->maskValue, options->badMask, 75 options->remnanceSize, options->remnanceThresh)) { 75 76 psError(PS_ERR_UNKNOWN, false, "Unable to mask remnance."); 76 77 return false; -
trunk/ppImage/src/ppImageOptions.c
r20618 r20626 77 77 options->fringeKeep = 1.0; // Fringe keep fraction 78 78 79 // Remnance values 80 options->remnanceSize = 30; // Size for remnance detection 81 options->remnanceThresh = 25.0; // Threshold for remnance detection 82 79 83 return options; 80 84 } … … 197 201 options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS"); 198 202 options->doDark = psMetadataLookupBool(NULL, recipe, "DARK"); 203 options->doRemnance = psMetadataLookupBool(NULL, recipe, "REMNANCE"); 199 204 options->doFlat = psMetadataLookupBool(NULL, recipe, "FLAT"); 200 205 options->doFringe = psMetadataLookupBool(NULL, recipe, "FRINGE"); … … 269 274 options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP"); 270 275 276 // Remnance options 277 options->remnanceSize = psMetadataLookupF32(NULL, recipe, "REMNANCE.SIZE"); 278 options->remnanceThresh = psMetadataLookupS32(NULL, recipe, "REMNANCE.THRESH"); 271 279 272 280 return options;
Note:
See TracChangeset
for help on using the changeset viewer.
