Changeset 24470 for trunk/ppNoiseMap/src
- Timestamp:
- Jun 17, 2009, 8:39:13 PM (17 years ago)
- Location:
- trunk/ppNoiseMap/src
- Files:
-
- 2 added
- 5 edited
-
. (modified) (1 prop)
-
Makefile.am (modified) (1 diff)
-
ppNoiseMap.h (modified) (1 diff)
-
ppNoiseMapLoop.c (modified) (3 diffs)
-
ppNoiseMapParseCamera.c (modified) (2 diffs)
-
ppNoiseMapReadout.c (added)
-
ppNoiseMapStats.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppNoiseMap/src
-
Property svn:import
set to
ppNoiseMapVersionDefinitions.h
-
Property svn:import
set to
-
trunk/ppNoiseMap/src/Makefile.am
r24458 r24470 36 36 ppNoiseMapCleanup.c \ 37 37 ppNoiseMapVersion.c \ 38 ppNoiseMapReadout.c \ 39 ppNoiseMapStats.c \ 38 40 ppNoiseMapDefineFile.c 39 41 -
trunk/ppNoiseMap/src/ppNoiseMap.h
r24458 r24470 46 46 void ppNoiseMapVersionPrint(void); 47 47 48 /// perform the noise measurement 49 bool ppNoiseMapReadout (pmConfig *config, pmFPAview *view); 50 51 /// measure the noise for the readout 52 bool ppNoiseMapStats(pmReadout *out, const pmReadout *in, psImageMaskType maskVal, int xBin, int yBin); 48 53 #endif -
trunk/ppNoiseMap/src/ppNoiseMapLoop.c
r24458 r24470 38 38 } 39 39 40 // load all cells for this chip before generating output file fpa: 40 41 pmCell *cell; // Cell from chip 41 42 while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) { … … 70 71 continue; 71 72 } 73 } 74 } 72 75 73 // perform the noise analysis 74 // if (!ppNoiseMapReadout(config, view)) { 75 // ESCAPE("Unable to detrend readout"); 76 // } 77 76 if (!ppNoiseMapReadout(config, view)) { 77 ESCAPE("Unable to measure noise map for readout"); 78 } 79 80 // close the cells 81 while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) { 82 if (!cell->process || !cell->file_exists) { 83 continue; 78 84 } 79 80 // Close cell81 85 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { 82 86 ESCAPE("save failure for Cell"); … … 90 94 } 91 95 92 // if (psTraceGetLevel("ppNoiseMap") >= 3) {93 // ppNoiseMapFileCheck(config);94 // }95 96 96 // Output and Close FPA 97 97 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { -
trunk/ppNoiseMap/src/ppNoiseMapParseCamera.c
r24458 r24470 2 2 3 3 bool ppNoiseMapParseCamera(pmConfig *config) { 4 5 bool status; 4 6 5 7 if (!ppNoiseMapDefineFile(config, NULL, "PPNOISEMAP.INPUT", "INPUT", PM_FPA_FILE_IMAGE)) { … … 10 12 psAssert(input, "We just put it there!"); 11 13 12 // add recipe options supplied on command line 13 // bool status = false; 14 // psMetadata *recipe = psMetadataLookupPtr(&status, config->recipes, RECIPE_NAME); 14 // the recipe is only fully parsed after the camera is first determined 15 psMetadata *recipe = psMetadataLookupPtr(&status, config->recipes, RECIPE_NAME); 15 16 16 // the following files are output targets 17 pmFPAfile *outImage = pmFPAfileDefineOutput(config, input->fpa, "PPNOISEMAP.OUTPUT"); 17 int xBin1 = psMetadataLookupS32(&status, recipe, "XBIN"); 18 int yBin1 = psMetadataLookupS32(&status, recipe, "YBIN"); 19 20 // this generates an output that maps to the same input pixels: 21 // pmFPAfile *outImage = pmFPAfileDefineOutput(config, input->fpa, "PPNOISEMAP.OUTPUT"); 22 23 // this output results in new pixels with binning: 24 pmFPAfile *outImage = pmFPAfileDefineFromFPA(config, input->fpa, xBin1, yBin1, "PPNOISEMAP.OUTPUT"); 25 18 26 if (!outImage) { 19 27 psError(PS_ERR_IO, false, _("Unable to generate output file from PPNOISEMAP.OUTPUT"));
Note:
See TracChangeset
for help on using the changeset viewer.
