IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 22, 2009, 2:19:10 PM (17 years ago)
Author:
Paul Price
Message:

Unconvolved images shouldn't be combined without the SAFE setting unless the user desires it.

File:
1 edited

Legend:

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

    r25830 r25924  
    4444    pmConfig *config = args->data[3];   // Configuration
    4545    bool full = PS_SCALAR_VALUE(args->data[4], U8); // Combine full image?
    46     bool normalise = PS_SCALAR_VALUE(args->data[5], U8); // Normalise images?
     46    bool safety = PS_SCALAR_VALUE(args->data[5], U8);    // Safety switch on?
     47    bool normalise = PS_SCALAR_VALUE(args->data[6], U8); // Normalise images?
    4748
    4849    psVector *mask = options->inputMask; // Mask for inputs
     
    5354
    5455    bool status = ppStackReadoutFinal(config, target, thread->readouts, mask, rejected,
    55                                       weightings, addVariance, full, norm); // Status of operation
     56                                      weightings, addVariance, full, safety, norm); // Status of operation
    5657
    5758    thread->busy = false;
     
    183184bool ppStackReadoutFinal(const pmConfig *config, pmReadout *outRO, const psArray *readouts,
    184185                         const psVector *mask, const psArray *rejected, const psVector *weightings,
    185                          const psVector *addVariance, bool full, const psVector *norm)
     186                         const psVector *addVariance, bool full, bool safety, const psVector *norm)
    186187{
    187188    assert(config);
     
    216217    if (rejected) {
    217218        // We have rejection from a previous combination: combine without flagging pixels to inspect
    218         safe = false;
     219        safe &= safety;
    219220        iter = 0;
    220221        combineRej = NAN;
Note: See TracChangeset for help on using the changeset viewer.