- Timestamp:
- Aug 23, 2007, 12:30:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/psModules/src/imcombine/pmSubtraction.c
r14540 r14639 4 4 * @author GLG, MHPCC 5 5 * 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 $ 8 8 * 9 9 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii … … 24 24 25 25 #include "pmSubtraction.h" 26 27 #define PIXEL_LIST_BUFFER 100 // Number of entries to add to pixel list at a time 28 26 29 27 30 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// … … 136 139 137 140 // 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)), 139 142 varianceWeighting); 140 143 … … 245 248 } 246 249 } 247 sum /= (uStop - uStart ) * (vStop - vStart); // Normalising sum of kernel component to unity250 sum /= (uStop - uStart + 1) * (vStop - vStart + 1); // Normalising sum of kernel component to unity 248 251 if (kernels->spatialOrder > 0 && index != kernels->subIndex) { 249 252 // The (0,0) element is subtracted from most kernels to preserve photometric scaling … … 880 883 } 881 884 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 883 887 int numCols = inImage->numCols, numRows = inImage->numRows; // Image dimensions 884 888 … … 1017 1021 return true; 1018 1022 } 1023 1024
Note:
See TracChangeset
for help on using the changeset viewer.
