IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38233 for trunk/ppImage/src


Ignore:
Timestamp:
May 6, 2015, 6:14:49 AM (11 years ago)
Author:
eugene
Message:

add squash nan option

Location:
trunk/ppImage/src
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/Makefile.am

    r38034 r38233  
    5050        ppImageMemory.c \
    5151        ppImageAddNoise.c \
     52        ppImageSquashNANs.c \
    5253        ppImageRandomGaussian.c \
    5354        ppImageAuxiliaryMask.c \
  • trunk/ppImage/src/ppImage.h

    r35685 r38233  
    5252    bool checkCTE;                      // measure pixel-based variance
    5353    bool checkNoise;                    // measure cell-level variance
     54    bool squashNANs;                    // measure cell-level variance
    5455    bool applyParity;                   // Apply Cell parities
    5556    bool doMaskStats;                   // Calculate mask statistics
     
    5960    bool addNoise;                      // Add noise to degrade MD image to 3pi
    6061
    61   bool hasVideo;                      // Determine if this OTA has a video cell
    62   bool useVideoDark;                  // Should we use a video dark if we can?
    63   bool useVideoMask;                  // Should we use a video mask if we can?
     62    bool hasVideo;                      // Determine if this OTA has a video cell
     63    bool useVideoDark;                  // Should we use a video dark if we can?
     64    bool useVideoMask;                  // Should we use a video mask if we can?
    6465 
    6566    // output files requested
     
    117118    psStatsOptions patternCellMean;        // Statistic for mean
    118119
    119   int patternContinuityEdgeWidth;        // Size of box to use for edge matching.
     120    int patternContinuityEdgeWidth;        // Size of box to use for edge matching.
    120121 
    121122    int remnanceSize;                   // Size for remnance detection
     
    124125    char *normClass;                    // class to use for per-class normalization
    125126
    126   psU16 maskstat_static;
    127   psU16 maskstat_dynamic;
    128   psU16 maskstat_magic;
    129   psU16 maskstat_advisory;
    130 
    131   psString auxVideoMask;                // auxillary video mask file
     127    psU16 maskstat_static;
     128    psU16 maskstat_dynamic;
     129    psU16 maskstat_magic;
     130    psU16 maskstat_advisory;
     131
     132    psString auxVideoMask;                // auxillary video mask file
    132133 
    133134} ppImageOptions;
     
    183184bool ppImageCheckNoise(pmConfig *config, ppImageOptions *options, pmFPAview *view);
    184185
     186bool ppImageSquashNANs(pmConfig *config, ppImageOptions *options, pmFPAview *view);
     187
    185188bool ppImageBurntoolMask(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *readout);
    186189bool ppImageBurntoolMaskFromTable(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *readout);
  • trunk/ppImage/src/ppImageLoop.c

    r35850 r38233  
    133133                if (!ppImageAddNoise(config, options, view, input->fpa)){
    134134                    ESCAPE("Unable to degrade MD image to 3pi");
     135                }
     136
     137
     138                if (!ppImageSquashNANs(config, options, view)) {
     139                    ESCAPE("Unable to squash NAN pixels");
    135140                }
    136141
  • trunk/ppImage/src/ppImageOptions.c

    r35685 r38233  
    4646    options->checkCTE        = false;   // Measure pixel-based variance
    4747    options->checkNoise      = false;   // Measure cell-level variances.
     48    options->squashNANs      = false;   // Measure cell-level variances.
    4849    options->applyParity     = false;   // Apply Cell parities
    4950    options->doMaskStats     = false;   // Calculate mask fractions
     
    340341    options->checkCTE       = psMetadataLookupBool(NULL, recipe, "CHECK.CTE");
    341342    options->checkNoise     = psMetadataLookupBool(NULL, recipe, "CHECK.NOISE");
     343    options->squashNANs     = psMetadataLookupBool(NULL, recipe, "SQUASH.NANS");
    342344
    343345    /* doMaskBuild : there are some cases where we require a mask, so we force doMaskBuild to be set even if the user specified 'FALSE'
Note: See TracChangeset for help on using the changeset viewer.