Changeset 30655 for trunk/ppImage/src
- Timestamp:
- Feb 16, 2011, 3:38:37 PM (15 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 5 edited
- 2 copied
-
. (modified) (1 prop)
-
Makefile.am (modified) (2 diffs)
-
ppImage.h (modified) (3 diffs)
-
ppImageAddNoise.c (copied) (copied from tags/ipp-20101215/ppImage/src/ppImageAddNoise.c )
-
ppImageLoop.c (modified) (2 diffs)
-
ppImageOptions.c (modified) (2 diffs)
-
ppImageRandomGaussian.c (copied) (copied from tags/ipp-20101215/ppImage/src/ppImageRandomGaussian.c )
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src
-
Property svn:mergeinfo
set to
/branches/czw_branch/20101203/ppImage/src merged eligible /branches/eam_branches/ipp-20101103/ppImage/src merged eligible /tags/ipp-20101215/ppImage/src merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ppImage/src/Makefile.am
r28043 r30655 2 2 3 3 noinst_HEADERS = \ 4 ppImage.h 4 ppImage.h 5 5 6 6 if HAVE_SVNVERSION … … 61 61 ppImageFileCheck.c \ 62 62 ppImageVersion.c \ 63 ppImageMemory.c 63 ppImageMemory.c \ 64 ppImageAddNoise.c \ 65 ppImageRandomGaussian.c 64 66 65 67 CLEANFILES = *~ -
trunk/ppImage/src/ppImage.h
r29833 r30655 53 53 bool doCrosstalkMeasure; // measure crosstalk signal 54 54 bool doCrosstalkCorrect; // apply crosstalk correction 55 bool addNoise; // Add noise to degrade MD image to 3pi 55 56 56 57 // output files requested … … 155 156 bool ppImageDetrendBias(pmReadout *inputReadout, pmReadout *bias, pmReadout *dark, ppImageOptions *options); 156 157 157 //bool ppImageDetrendNonLinear(pmReadout *input, ppImageOptions *options);158 158 bool ppImageDetrendNonLinear(pmReadout *input, pmFPAview *linearity, pmConfig *config); 159 159 bool ppImageDetrendNonLinearLookup(pmReadout *input, psMetadataItem *dataItem); … … 291 291 void ppImageMemoryDump(const char *description); 292 292 293 294 //Functions needed to degrade MD exposures to 3pi exposures 295 296 bool ppImageAddNoise(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmFPA *fpa) ; 297 double ppImageRandomGaussian (const psRandom *rnd, double mean, double sigma); 298 double ppImageRandomGaussianNorm (const psRandom *rnd); 299 void ppImageRandomGaussianFree(void); 300 301 293 302 #endif -
trunk/ppImage/src/ppImageLoop.c
r29833 r30655 125 125 ESCAPE("Unable to measure CTE"); 126 126 } 127 128 // optionally degrade a MD image to 3pi exposure times 129 if (!ppImageAddNoise(config, options, view, input->fpa)){ 130 ESCAPE("Unable to degrade MD image to 3pi"); 131 } 127 132 } 128 133 … … 152 157 ESCAPE("Unable to free detrend images"); 153 158 } 154 159 155 160 // Apply the fringe correction 156 161 if (options->doFringe) { -
trunk/ppImage/src/ppImageOptions.c
r29968 r30655 42 42 options->applyParity = false; // Apply Cell parities 43 43 options->doMaskStats = false; // Calculate mask fractions 44 44 options->addNoise = false; //Degrade an MD image to a 3pi image 45 45 46 // output files requested 46 47 options->BaseFITS = false; // create output image … … 239 240 options->doPatternCell = psMetadataLookupBool(NULL, recipe, "PATTERN.CELL"); 240 241 options->doMaskStats = psMetadataLookupBool(NULL, recipe, "MASK.STATS"); 242 options->addNoise = psMetadataLookupBool(NULL, recipe, "ADDNOISE"); 241 243 242 244 options->doStats = false;
Note:
See TracChangeset
for help on using the changeset viewer.
