IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23845


Ignore:
Timestamp:
Apr 13, 2009, 5:19:15 PM (17 years ago)
Author:
eugene
Message:

adding option to measure the crosstalk (GPC1-specific for now)

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

Legend:

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

    r23808 r23845  
    5050        ppImageMetadataStats.c \
    5151        ppImageReplaceBackground.c \
     52        ppImageMeasureCrosstalk.c \
     53        ppImageCorrectCrosstalk.c \
    5254        ppImageDefineFile.c \
    5355        ppImageSetMaskBits.c \
  • trunk/ppImage/src/ppImage.h

    r23825 r23845  
    4444    bool checkCTE;                      // measure pixel-based variance
    4545
     46    bool doCrosstalkMeasure;            // measure crosstalk signal
     47    bool doCrosstalkCorrect;            // apply crosstalk correction
     48
    4649    // output files requested
    4750    bool BaseFITS;
     
    185188
    186189
     190// measure the crosstalk signal
     191bool ppImageMeasureCrosstalk(pmConfig *config, ppImageOptions *options, pmFPAview *view);
     192
     193// correct the crosstalk signal
     194bool ppImageCorrectCrosstalk(pmConfig *config, ppImageOptions *options, pmFPAview *view);
     195
    187196// Measure fringes
    188197bool ppImageDetrendFringeMeasure(pmReadout *readout, // Readout to measure
  • trunk/ppImage/src/ppImageLoop.c

    r23753 r23845  
    5050            ESCAPE("load failure for Chip");
    5151        }
     52
     53        // crosstalk measurement needs to be done on the entire chip at once, and before
     54        // signal levels are modified by the detrending.  If crosstalk measurement is
     55        // requested, the read-level for the images is set to CHIP.
     56        if (!ppImageMeasureCrosstalk(config, options, view)) {
     57          ESCAPE("Unable to perform crosstalk correction");
     58        }
     59
     60        // crosstalk correction needs to be done on the entire chip at once, and before
     61        // signal levels are modified by the detrending.  If crosstalk correction is
     62        // requested, the read-level for the images is set to CHIP.
     63        if (!ppImageCorrectCrosstalk(config, options, view)) {
     64          ESCAPE("Unable to perform crosstalk correction");
     65        }
    5266
    5367        psTimerStart(TIMER_DETREND);
  • trunk/ppImage/src/ppImageOptions.c

    r23825 r23845  
    6161    options->markValue       = 0x00;    // A safe bit for internal marking
    6262
     63    // crosstalk options
     64    options->doCrosstalkMeasure = false;   // measure crosstalk
     65    options->doCrosstalkCorrect = false;   // correct crosstalk
     66
    6367    // Non-linearity default options
    6468    options->nonLinearType   = 0;       // Type of non-linearity data (vector, string or metadata)
     
    207211    options->doMask = psMetadataLookupBool(NULL, recipe, "MASK");
    208212
     213    // Mask recipe options (note that mask bit values are set in ppImageSetMaskBits.c)
     214    options->doCrosstalkMeasure = psMetadataLookupBool(NULL, recipe, "CROSSTALK.MEASURE");
     215    options->doCrosstalkCorrect = psMetadataLookupBool(NULL, recipe, "CROSSTALK.CORRECT");
     216
    209217    options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS");
    210218    options->doDark = psMetadataLookupBool(NULL, recipe, "DARK");
Note: See TracChangeset for help on using the changeset viewer.