IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2007, 12:30:43 PM (19 years ago)
Author:
magnier
Message:

update to sync with HEAD dev work

File:
1 edited

Legend:

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

    r14540 r14639  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-08-17 01:50:50 $
     6 *  @version $Revision: 1.42.2.1 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-08-23 22:30:43 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    2424
    2525#include "pmSubtraction.h"
     26
     27#define PIXEL_LIST_BUFFER 100           // Number of entries to add to pixel list at a time
     28
    2629
    2730//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     
    136139
    137140              // Normalising sum of kernel component to unity
    138               float norm = kernelWeighting(1.0 / (float)((uStop - uStart) * (vStop - vStart)),
     141              float norm = kernelWeighting(1.0 / (float)((uStop - uStart + 1) * (vStop - vStart + 1)),
    139142                                           varianceWeighting);
    140143
     
    245248              }
    246249          }
    247           sum /= (uStop - uStart) * (vStop - vStart); // Normalising sum of kernel component to unity
     250          sum /= (uStop - uStart + 1) * (vStop - vStart + 1); // Normalising sum of kernel component to unity
    248251          if (kernels->spatialOrder > 0 && index != kernels->subIndex) {
    249252              // The (0,0) element is subtracted from most kernels to preserve photometric scaling
     
    880883    }
    881884
    882     float background = solution->data.F64[solution->n-1]; // The difference in background
     885    int numBackground = polyTerms(kernels->bgOrder); // Number of background terms
     886    float background = solution->data.F64[solution->n - numBackground]; // The difference in background
    883887    int numCols = inImage->numCols, numRows = inImage->numRows; // Image dimensions
    884888
     
    10171021    return true;
    10181022}
     1023
     1024
Note: See TracChangeset for help on using the changeset viewer.