IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14277


Ignore:
Timestamp:
Jul 17, 2007, 4:16:46 PM (19 years ago)
Author:
Paul Price
Message:

Wrong order of parameters for variance calculation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmStack.c

    r14272 r14277  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2007-07-17 23:33:09 $
     10 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2007-07-18 02:16:46 $
    1212 *
    1313 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    249249    float mean, variance;               // Mean and variance of the combination
    250250    if (!combinationMean(&mean, pixelData, weights, pixelMasks, maskVal) ||
    251         (weight && !combinationVariance(&variance, weights, pixelWeights, pixelMasks, maskVal))) {
     251        (weight && !combinationVariance(&variance, pixelWeights, weights, pixelMasks, maskVal))) {
    252252        image->data.F32[y][x] = NAN;
    253253        mask->data.PS_TYPE_MASK_DATA[y][x] = bad;
Note: See TracChangeset for help on using the changeset viewer.