IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24470 for trunk/ppNoiseMap/src


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 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppNoiseMap/src

    • Property svn:import set to
      ppNoiseMapVersionDefinitions.h
  • trunk/ppNoiseMap/src/Makefile.am

    r24458 r24470  
    3636        ppNoiseMapCleanup.c \
    3737        ppNoiseMapVersion.c \
     38        ppNoiseMapReadout.c \
     39        ppNoiseMapStats.c \
    3840        ppNoiseMapDefineFile.c
    3941
  • trunk/ppNoiseMap/src/ppNoiseMap.h

    r24458 r24470  
    4646void ppNoiseMapVersionPrint(void);
    4747
     48/// perform the noise measurement
     49bool ppNoiseMapReadout (pmConfig *config, pmFPAview *view);
     50
     51/// measure the noise for the readout
     52bool ppNoiseMapStats(pmReadout *out, const pmReadout *in, psImageMaskType maskVal, int xBin, int yBin);
    4853#endif
  • trunk/ppNoiseMap/src/ppNoiseMapLoop.c

    r24458 r24470  
    3838        }
    3939
     40        // load all cells for this chip before generating output file fpa:
    4041        pmCell *cell;                   // Cell from chip
    4142        while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) {
     
    7071                    continue;
    7172                }
     73            }
     74        }
    7275
    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;
    7884            }
    79 
    80             // Close cell
    8185            if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
    8286                ESCAPE("save failure for Cell");
     
    9094    }
    9195
    92     // if (psTraceGetLevel("ppNoiseMap") >= 3) {
    93     //     ppNoiseMapFileCheck(config);
    94     // }
    95 
    9696    // Output and Close FPA
    9797    if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
  • 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.