IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2007, 5:55:52 PM (19 years ago)
Author:
Paul Price
Message:

Use the weight map instead of the input image as the noise term.

File:
1 edited

Legend:

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

    r14524 r14527  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-08-16 02:57:34 $
     6 *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-08-16 03:55:52 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    702702
    703703            psImage *inStamp = psImageSubset(stamp->input->image, region); // Image of stamp
     704            psImage *wtStamp = psImageSubset(stamp->weight->image, region); // Image of stamp
    704705            assert(convolvedStamp->numCols == inStamp->numCols &&
    705706                   convolvedStamp->numRows == inStamp->numRows);
     707            assert(convolvedStamp->numCols == wtStamp->numCols &&
     708                   convolvedStamp->numRows == wtStamp->numRows);
    706709            (void)psBinaryOp(convolvedStamp, inStamp, "-", convolvedStamp);
    707710            (void)psBinaryOp(convolvedStamp, convolvedStamp, "*", convolvedStamp);
    708             (void)psBinaryOp(convolvedStamp, convolvedStamp, "/", inStamp);
     711            (void)psBinaryOp(convolvedStamp, convolvedStamp, "/", wtStamp);
    709712            psFree(inStamp);
     713            psFree(wtStamp);
    710714            if (!psImageStats(stats, convolvedStamp, NULL, 0)) {
    711715                psError(PS_ERR_UNKNOWN, false,
Note: See TracChangeset for help on using the changeset viewer.