IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19069


Ignore:
Timestamp:
Aug 14, 2008, 2:44:44 PM (18 years ago)
Author:
eugene
Message:

add option to do first readout of 3D cell (or skip)

Location:
trunk/ppStats/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStats.h

    r18168 r19069  
    2121    psList *summary;                    // Summary statistics to calculate
    2222    // Options for input data
     23    bool doFirstReadout3D;              // for 3D data, use the first readout?
    2324    float sample;                       // Fraction of cell to sample for statistics
    2425    psMaskType maskVal;                 // Mask value for images
  • trunk/ppStats/src/ppStatsChip.c

    r18969 r19069  
    7777
    7878        // XXX for now, skip the video cells (cell->readouts->n > 1)
    79         if (cell->readouts->n > 1) {
     79        if ((cell->readouts->n > 1) && !data->doFirstReadout3D){
    8080          psWarning ("Skipping Video Cell for ppStatsCell");
    8181          continue;
  • trunk/ppStats/src/ppStatsData.c

    r14020 r19069  
    4545    data->sample = 0;
    4646    data->maskVal = 0;
     47    data->doFirstReadout3D = false;
    4748    data->chips = psListAlloc(NULL);
    4849    data->cells = psListAlloc(NULL);
  • trunk/ppStats/src/ppStatsSetupFromRecipe.c

    r18558 r19069  
    127127    }
    128128
     129    bool doFirst = psMetadataLookupBool(&mdok, recipe, "DO.FIRST.READOUT.3D"); // Sample fraction
     130    if (mdok) {
     131        data->doFirstReadout3D = doFirst;
     132    }
     133
    129134    // set the mask value used for stand-alone analyses.
    130135    if (data->maskVal == 0) {
Note: See TracChangeset for help on using the changeset viewer.