Changeset 35747 for branches/eam_branches/ipp-20130509/ppImage/src
- Timestamp:
- Jul 3, 2013, 1:43:50 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509/ppImage/src
- Files:
-
- 9 edited
- 3 copied
-
. (modified) (1 prop)
-
Makefile.am (modified) (1 diff)
-
burnparams.h (copied) (copied from trunk/ppImage/src/burnparams.h )
-
burntool.h (copied) (copied from trunk/ppImage/src/burntool.h )
-
ppImage.h (modified) (2 diffs)
-
ppImageArguments.c (modified) (1 diff)
-
ppImageAuxiliaryMask.c (modified) (1 diff)
-
ppImageBurntoolApply.c (copied) (copied from trunk/ppImage/src/ppImageBurntoolApply.c )
-
ppImageDetrendReadout.c (modified) (2 diffs)
-
ppImageDetrendRecord.c (modified) (1 diff)
-
ppImageOptions.c (modified) (2 diffs)
-
ppImageParseCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/ppImage/src
- Property svn:mergeinfo changed
/trunk/ppImage/src merged: 35612,35685,35722
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/ppImage/src/Makefile.am
r35531 r35747 66 66 ppImageAddNoise.c \ 67 67 ppImageRandomGaussian.c \ 68 ppImageAuxiliaryMask.c 68 ppImageAuxiliaryMask.c \ 69 ppImageBurntoolApply.c 69 70 70 71 CLEANFILES = *~ -
branches/eam_branches/ipp-20130509/ppImage/src/ppImage.h
r35533 r35747 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); -
branches/eam_branches/ipp-20130509/ppImage/src/ppImageArguments.c
r31155 r35747 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"))) { -
branches/eam_branches/ipp-20130509/ppImage/src/ppImageAuxiliaryMask.c
r35533 r35747 60 60 61 61 if (!options->doAuxMask) { 62 psLogMsg ("ppImage", PS_LOG_ INFO, "Auxiliary mask not enabled.");62 psLogMsg ("ppImage", PS_LOG_DETAIL, "Auxiliary mask not enabled."); 63 63 return true; 64 64 } -
branches/eam_branches/ipp-20130509/ppImage/src/ppImageDetrendReadout.c
r35531 r35747 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 -
branches/eam_branches/ipp-20130509/ppImage/src/ppImageDetrendRecord.c
r29882 r35747 76 76 77 77 detrendRecord(options->doNonLin, detrend, config, view, "PPIMAGE.LINEARITY","DETREND.NONLIN", "Non-linearity table filename"); 78 79 detrendRecord(options->doDark & options->useVideoDark, detrend, config, view, "PPIMAGE.VIDEODARK", "DETREND.VIDEODARK", "VideoDark filename"); 80 detrendRecord(options->doMask & options->useVideoMask, detrend, config, view, "PPIMAGE.VIDEOMASK", "DETREND.VIDEOMASK", "VideoMASK filename"); 78 81 psFree (detrend); 79 82 return true; -
branches/eam_branches/ipp-20130509/ppImage/src/ppImageOptions.c
r35531 r35747 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"); -
branches/eam_branches/ipp-20130509/ppImage/src/ppImageParseCamera.c
r35557 r35747 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.
