IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9341


Ignore:
Timestamp:
Oct 5, 2006, 5:36:22 PM (20 years ago)
Author:
Paul Price
Message:

Enabling iteration on shutter measurement.

Location:
trunk/ppMerge/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCombine.c

    r9325 r9341  
    131131                psVectorInit(exptimes, 0);
    132132                psArray *images = psArrayAlloc(filenames->n); // Array of images
     133                psArray *weights = psArrayAlloc(filenames->n); // Array of weights
    133134                psArray *masks = psArrayAlloc(filenames->n); // Array of masks
    134                 images->n = masks->n = filenames->n;
     135                images->n = masks->n = weights->n = filenames->n;
    135136                for (int i = 0; i < filenames->n; i++) {
    136137                    if (! filenames->data[i] || strlen(filenames->data[i]) == 0) {
     
    163164                    pmReadout *readoutIn = cellIn->readouts->data[0];
    164165                    images->data[i] = psMemIncrRefCounter(readoutIn->image);
     166                    weights->data[i] = psMemIncrRefCounter(readoutIn->weight);
    165167                    masks->data[i] = psMemIncrRefCounter(readoutIn->mask);
    166168                    numRead++;
    167169                }
    168170                if (numRead > 1) {
    169                     readout->image = pmShutterCorrectionMeasure(exptimes, images, masks,
     171                    readout->image = pmShutterCorrectionMeasure(exptimes, images, weights, masks,
    170172                                                                options->shutterSize, options->mean,
    171                                                                 options->stdev, options->combine->maskVal);
     173                                                                options->stdev, options->shutterIter,
     174                                                                options->shutterRej,
     175                                                                options->combine->maskVal);
    172176                    psTrace(__func__, 5, "Chip %d, cell %d\n", view->chip, view->cell);
    173177                } else {
  • trunk/ppMerge/src/ppMergeOptions.c

    r9325 r9341  
    4040    options->stdev = PS_STAT_SAMPLE_STDEV;
    4141    options->shutterSize = 10;
     42    options->shutterIter = 2;
     43    options->shutterRej = 3.0;
    4244    options->onOff = 0;
    4345    options->combine = pmCombineParamsAlloc(PS_STAT_SAMPLE_MEAN);
     
    129131    OPTION_PARSE(options->combine->nKeep,    recipe, "NKEEP",     S32 );
    130132    OPTION_PARSE(options->combine->maskVal,  recipe, "MASKVAL",   S32 );
    131     OPTION_PARSE(options->shutterSize,       recipe, "SHUTTERSIZE", S32 );
     133    OPTION_PARSE(options->shutterSize,       recipe, "SHUTTER.SIZE", S32 );
     134    OPTION_PARSE(options->shutterIter,       recipe, "SHUTTER.ITER", S32 );
     135    OPTION_PARSE(options->shutterRej,        recipe, "SHUTTER.REJECT", S32 );
     136
    132137    options->combine->combine = parseStat(recipe, "COMBINE");
    133138    options->mean             = parseStat(recipe, "MEAN");
  • trunk/ppMerge/src/ppMergeOptions.h

    r9325 r9341  
    2727    psStatsOptions stdev;               // Statistic to use to measure the stdev
    2828    int shutterSize;                    // Size for shutter measurement regions
     29    int shutterIter;                    // Number of iterations for shutter measurement
     30    float shutterRej;                   // Rejection limit for shutter measurement
    2931    ppOnOff onOff;                      // On/off pairs?
    3032    pmCombineParams *combine;           // Combination parameters
Note: See TracChangeset for help on using the changeset viewer.