IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 8, 2009, 10:56:29 AM (17 years ago)
Author:
Paul Price
Message:

Need to be able to choose whether to combine entire image or not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppStack/src/ppStackReadout.c

    r25810 r25812  
    4343    ppStackOptions *options = args->data[2]; // Options
    4444    pmConfig *config = args->data[3];   // Configuration
     45    bool full = PS_SCALAR_VALUE(args->data[4], U8); // Combine full image?
    4546
    4647    psVector *mask = options->inputMask; // Mask for inputs
     
    4950    psVector *addVariance = options->matchChi2; // Additional variance when rejecting
    5051
     52
    5153    bool status = ppStackReadoutFinal(config, target, thread->readouts, mask, rejected,
    52                                       weightings, addVariance); // Status of operation
     54                                      weightings, addVariance, full); // Status of operation
    5355
    5456    thread->busy = false;
     
    180182bool ppStackReadoutFinal(const pmConfig *config, pmReadout *outRO, const psArray *readouts,
    181183                         const psVector *mask, const psArray *rejected, const psVector *weightings,
    182                          const psVector *addVariance)
     184                         const psVector *addVariance, bool full)
    183185{
    184186    assert(config);
     
    211213    psArray *stack = psArrayAlloc(num); // Array for stacking
    212214
    213     bool entire = true;                 // Combine entire image?
    214     if (rejected) {
     215    if (!rejected) {
    215216        // We have rejection from a previous combination: combine without flagging pixels to inspect
    216         entire = false;
    217217        safe = false;
    218218        iter = 0;
     
    225225        if (mask->data.U8[i] & (PPSTACK_MASK_REJECT | PPSTACK_MASK_BAD)) {
    226226            // Image completely rejected since previous combination
    227             entire = true;
     227            full = true;
    228228            continue;
    229229        } else if (mask->data.U8[i]) {
     
    256256    if (!pmStackCombine(outRO, stack, maskVal | maskBad, maskBad, 0,
    257257                        iter, combineRej, combineSys, combineDiscard,
    258                         entire, useVariance, safe, !rejected)) {
     258                        full, useVariance, safe, !rejected)) {
    259259        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts.");
    260260        psFree(stack);
Note: See TracChangeset for help on using the changeset viewer.