IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 6, 2011, 1:15:47 PM (15 years ago)
Author:
watersc1
Message:

Updates to ppStack to allow CONVOLVE=FALSE stacks to be generated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackLoop.c

    r31158 r31203  
    115115    // Final combination.  This one does NOT need to be normalized since the convolution takes care of that
    116116    psTrace("ppStack", 2, "Final stack of convolved images....\n");
    117     if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, false, true)) {
     117    if (options->convolve) {
     118      if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, false, true)) {
    118119        psError(psErrorCodeLast(), false, "Unable to perform final combination.");
    119120        psFree(stack);
    120121        return false;
    121     }
     122      }
     123    }
     124    else {
     125      // Since we haven't convolved, I believe we do need to normalize here. We also cannot grow.
     126      if (!ppStackCombineFinal(stack, options->convCovars, options, config, false, true, false)) {
     127        psError(psErrorCodeLast(), false, "Unable to perform final combination.");
     128        psFree(stack);
     129        return false;
     130      }
     131    }
     132     
    122133    psLogMsg("ppStack", PS_LOG_INFO, "Stage 5: Final Stack: %f sec", psTimerClear("PPSTACK_STEPS"));
    123134    ppStackMemDump("final");
Note: See TracChangeset for help on using the changeset viewer.