Changeset 9341
- Timestamp:
- Oct 5, 2006, 5:36:22 PM (20 years ago)
- Location:
- trunk/ppMerge/src
- Files:
-
- 3 edited
-
ppMergeCombine.c (modified) (2 diffs)
-
ppMergeOptions.c (modified) (2 diffs)
-
ppMergeOptions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeCombine.c
r9325 r9341 131 131 psVectorInit(exptimes, 0); 132 132 psArray *images = psArrayAlloc(filenames->n); // Array of images 133 psArray *weights = psArrayAlloc(filenames->n); // Array of weights 133 134 psArray *masks = psArrayAlloc(filenames->n); // Array of masks 134 images->n = masks->n = filenames->n;135 images->n = masks->n = weights->n = filenames->n; 135 136 for (int i = 0; i < filenames->n; i++) { 136 137 if (! filenames->data[i] || strlen(filenames->data[i]) == 0) { … … 163 164 pmReadout *readoutIn = cellIn->readouts->data[0]; 164 165 images->data[i] = psMemIncrRefCounter(readoutIn->image); 166 weights->data[i] = psMemIncrRefCounter(readoutIn->weight); 165 167 masks->data[i] = psMemIncrRefCounter(readoutIn->mask); 166 168 numRead++; 167 169 } 168 170 if (numRead > 1) { 169 readout->image = pmShutterCorrectionMeasure(exptimes, images, masks,171 readout->image = pmShutterCorrectionMeasure(exptimes, images, weights, masks, 170 172 options->shutterSize, options->mean, 171 options->stdev, options->combine->maskVal); 173 options->stdev, options->shutterIter, 174 options->shutterRej, 175 options->combine->maskVal); 172 176 psTrace(__func__, 5, "Chip %d, cell %d\n", view->chip, view->cell); 173 177 } else { -
trunk/ppMerge/src/ppMergeOptions.c
r9325 r9341 40 40 options->stdev = PS_STAT_SAMPLE_STDEV; 41 41 options->shutterSize = 10; 42 options->shutterIter = 2; 43 options->shutterRej = 3.0; 42 44 options->onOff = 0; 43 45 options->combine = pmCombineParamsAlloc(PS_STAT_SAMPLE_MEAN); … … 129 131 OPTION_PARSE(options->combine->nKeep, recipe, "NKEEP", S32 ); 130 132 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 132 137 options->combine->combine = parseStat(recipe, "COMBINE"); 133 138 options->mean = parseStat(recipe, "MEAN"); -
trunk/ppMerge/src/ppMergeOptions.h
r9325 r9341 27 27 psStatsOptions stdev; // Statistic to use to measure the stdev 28 28 int shutterSize; // Size for shutter measurement regions 29 int shutterIter; // Number of iterations for shutter measurement 30 float shutterRej; // Rejection limit for shutter measurement 29 31 ppOnOff onOff; // On/off pairs? 30 32 pmCombineParams *combine; // Combination parameters
Note:
See TracChangeset
for help on using the changeset viewer.
