IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 17, 2009, 8:39:13 PM (17 years ago)
Author:
eugene
Message:

updates to ppNoiseMap (now works)

Location:
trunk/ppNoiseMap/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppNoiseMap/src

    • Property svn:import set to
      ppNoiseMapVersionDefinitions.h
  • trunk/ppNoiseMap/src/ppNoiseMapParseCamera.c

    r24458 r24470  
    22
    33bool ppNoiseMapParseCamera(pmConfig *config) {
     4
     5    bool status;
    46
    57    if (!ppNoiseMapDefineFile(config, NULL, "PPNOISEMAP.INPUT", "INPUT", PM_FPA_FILE_IMAGE)) {
     
    1012    psAssert(input, "We just put it there!");
    1113
    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);
    1516
    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
    1826    if (!outImage) {
    1927        psError(PS_ERR_IO, false, _("Unable to generate output file from PPNOISEMAP.OUTPUT"));
Note: See TracChangeset for help on using the changeset viewer.