- Timestamp:
- Nov 8, 2021, 8:16:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/ppStack/src/ppStackReadout.c
r41908 r41910 69 69 70 70 pmReadout *outRO = options->outRO; // Output readout 71 pmReadout *expRO = options->expRO; // Expmap readout 71 72 psVector *mask = options->inputMask; // Mask for inputs 72 73 psVector *weightings = options->weightings; // Weightings (1/noise^2) for each image … … 76 77 // fprintf (stderr, "start thread %d : scan range %d - %d\n", thread->entry, thread->firstScan, thread->lastScan); 77 78 78 bool status = ppStackReadoutPercent(config, outRO, thread->readouts, mask, weightings, exposures, addVariance);79 bool status = ppStackReadoutPercent(config, outRO, expRO, thread->readouts, mask, weightings, exposures, addVariance); 79 80 80 81 thread->busy = false; … … 361 362 } 362 363 363 bool ppStackReadoutPercent(const pmConfig *config, pmReadout *outRO, const psArray *readouts,364 bool ppStackReadoutPercent(const pmConfig *config, pmReadout *outRO, pmReadout *expRO, const psArray *readouts, 364 365 const psVector *mask, const psVector *weightings, const psVector *exposures, 365 366 const psVector *addVariance) … … 367 368 assert(config); 368 369 assert(outRO); 370 assert(expRO); 369 371 assert(readouts); 370 372 assert(mask && mask->n == readouts->n && mask->type.type == PS_TYPE_VECTOR_MASK); … … 420 422 // XXX rename minRange to rejectFraction 421 423 // XXX add expmaps 422 if (!pmStackCombineByPercentile(outRO, NULL, stackData, minRange, maskBad, maskSuspect, maskBlank)) {424 if (!pmStackCombineByPercentile(outRO, expRO, stackData, minRange, maskBad, maskSuspect, maskBlank)) { 423 425 psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection."); 424 426 psFree(stackData); … … 426 428 } 427 429 428 outRO->data_exists = true; // output readout429 outRO->parent->data_exists = true; // output cell430 outRO->data_exists = true; // output readout 431 outRO->parent->data_exists = true; // output cell 430 432 outRO->parent->parent->data_exists = true; // output chip 431 433 432 # if 0 433 pmCell *expCell = expRO->parent; // Exposure cell 434 pmChip *expChip = expCell->parent; // Exposure chip 435 expRO->data_exists = true; 436 expCell->data_exists = true; 437 expChip->data_exists = true; 438 # endif 434 expRO->data_exists = true; // expmap readout 435 expRO->parent->data_exists = true; // expmap cell 436 expRO->parent->parent->data_exists = true; // expmap chip 439 437 440 438 psFree(stackData);
Note:
See TracChangeset
for help on using the changeset viewer.
