IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 21, 2008, 4:27:40 PM (18 years ago)
Author:
Paul Price
Message:

Allow background to be applied optionally. This is to support the stacking, where we want to apply a matched filter --- the background term corrupts the filtered image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080214/psModules/src/imcombine/pmSubtraction.c

    r16585 r16586  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.79.2.1 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2008-02-22 02:00:30 $
     6 *  @version $Revision: 1.79.2.2 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2008-02-22 02:27:40 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    636636bool pmSubtractionConvolve(pmReadout *out1, pmReadout *out2, const pmReadout *ro1, const pmReadout *ro2,
    637637                           const psImage *subMask, psMaskType blank, const psRegion *region,
    638                            const pmSubtractionKernels *kernels, bool useFFT)
     638                           const pmSubtractionKernels *kernels, bool doBG, bool useFFT)
    639639{
    640640    PS_ASSERT_PTR_NON_NULL(out1, false);
     
    802802            // (with the stamps) that it does not vary rapidly on this scale.
    803803            polyValues = p_pmSubtractionPolynomial(polyValues, kernels->spatialOrder, xNorm, yNorm);
    804             float background = p_pmSubtractionSolutionBackground(kernels, polyValues); // Background term
    805             background = 0.0;
     804            float background = doBG ? p_pmSubtractionSolutionBackground(kernels, polyValues) :
     805                0.0; // Background term
    806806            psRegion subRegion = psRegionSet(i, xSubMax, j, ySubMax); // Sub-region to convolve
    807807
Note: See TracChangeset for help on using the changeset viewer.