Changeset 24470 for trunk/ppNoiseMap/src/ppNoiseMapParseCamera.c
- Timestamp:
- Jun 17, 2009, 8:39:13 PM (17 years ago)
- Location:
- trunk/ppNoiseMap/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppNoiseMapParseCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppNoiseMap/src
-
Property svn:import
set to
ppNoiseMapVersionDefinitions.h
-
Property svn:import
set to
-
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.
