Changeset 35685 for trunk/ppImage
- Timestamp:
- Jun 19, 2013, 10:21:44 AM (13 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 3 added
- 6 edited
-
Makefile.am (modified) (1 diff)
-
burnparams.h (added)
-
burntool.h (added)
-
ppImage.h (modified) (2 diffs)
-
ppImageArguments.c (modified) (1 diff)
-
ppImageBurntoolApply.c (added)
-
ppImageDetrendReadout.c (modified) (2 diffs)
-
ppImageOptions.c (modified) (2 diffs)
-
ppImageParseCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/Makefile.am
r35531 r35685 66 66 ppImageAddNoise.c \ 67 67 ppImageRandomGaussian.c \ 68 ppImageAuxiliaryMask.c 68 ppImageAuxiliaryMask.c \ 69 ppImageBurntoolApply.c 69 70 70 71 CLEANFILES = *~ -
trunk/ppImage/src/ppImage.h
r35533 r35685 26 26 bool doMaskBuild; // Build internal mask 27 27 bool doVarianceBuild; // Build internal variance map 28 bool doApplyBurntool; // apply burntool correction 28 29 bool doMaskBurntool; // mask potential burntool trails 29 30 bool doMaskSat; // mask saturated pixels … … 182 183 bool ppImageCheckNoise(pmConfig *config, ppImageOptions *options, pmFPAview *view); 183 184 184 bool ppImageBurntoolMask(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *mask); 185 bool ppImageBurntoolMask(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *readout); 186 bool ppImageBurntoolMaskFromTable(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *readout); 187 188 bool ppImageBurntoolApply(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *readout); 185 189 186 190 bool ppImageDetrendPatternApply(pmConfig *config, pmChip *chip, const pmFPAview *inputView, const ppImageOptions *options); -
trunk/ppImage/src/ppImageArguments.c
r31155 r35685 117 117 pmConfigFileSetsMD (config->arguments, &argc, argv, "LINEARITY", "-linearity", "-linearlist"); 118 118 119 if ((argnum = psArgumentGet(argc, argv, "-burntool"))) { 120 psArgumentRemove(argnum, &argc, argv); 121 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "BURNTOOL.TABLE", PS_META_REPLACE, "", argv[argnum]); 122 psArgumentRemove(argnum, &argc, argv); 123 } 124 119 125 // chip selection is used to limit chips to be processed 120 126 if ((argnum = psArgumentGet (argc, argv, "-chip"))) { -
trunk/ppImage/src/ppImageDetrendReadout.c
r35531 r35685 56 56 } 57 57 done_video_check: 58 58 59 59 // Masking on the basis of pixel value needs to be done before anything else, so the values are pristine. 60 60 if (options->doMaskBuild) { … … 74 74 pmMaskBadPixels(input, mask, options->maskValue); 75 75 } 76 77 if (options->doApplyBurntool) 78 { 79 // extern bool ppImageBurntoolApply(pmConfig *, ppImageOptions *, pmFPAview *, pmReadout *); 80 ppImageBurntoolApply(config, options, view, input); 81 } 82 76 83 if (options->doMaskBurntool) { 77 ppImageBurntoolMask(config,options,view,input); 84 if (options->doApplyBurntool) { 85 // build burntool mask from data input burntool table 86 ppImageBurntoolMaskFromTable(config,options,view,input); 87 } else { 88 // build burntool mask from data in the input image's fits extension 89 ppImageBurntoolMask(config,options,view,input); 90 } 78 91 } 79 92 -
trunk/ppImage/src/ppImageOptions.c
r35531 r35685 23 23 options->doMaskLow = false; // mask low pixels 24 24 options->doMaskBurntool = false; // mask potential burntool trails 25 options->doApplyBurntool = false; // apply burntool correction 25 26 options->doVarianceBuild = false; // Build internal variance 26 27 options->doMask = false; // Mask bad pixels … … 231 232 options->doMaskLow = psMetadataLookupBool(NULL, recipe, "MASK.LOW"); 232 233 options->doMaskBurntool = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL"); 234 options->doApplyBurntool = psMetadataLookupBool(NULL, recipe, "APPLY.BURNTOOL"); 233 235 options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD"); 234 236 options->doAuxMask = psMetadataLookupBool(NULL, recipe, "MASK.AUXMASK"); -
trunk/ppImage/src/ppImageParseCamera.c
r35557 r35685 184 184 } 185 185 outCTE->save = true; 186 } 187 if (options->doApplyBurntool) { 188 // If no burntool file was supplied do not fail. (camera_exp.pl does not supply it 189 // for example. 190 if (!psMetadataLookupStr(NULL, config->arguments, "BURNTOOL.TABLE")) { 191 psWarning("BURNTOOL.TABLE not supplied setting doApplyBurntool to false"); 192 options->doApplyBurntool = false; 193 } 186 194 } 187 195
Note:
See TracChangeset
for help on using the changeset viewer.
