IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14304


Ignore:
Timestamp:
Jul 18, 2007, 3:10:57 PM (19 years ago)
Author:
Paul Price
Message:

I think I've got it right this time....

File:
1 edited

Legend:

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

    r14303 r14304  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-07-19 01:06:00 $
     6 *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-07-19 01:10:57 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    969969    psKernel *kernelWeight = NULL;      // Kernel for the weight map
    970970
    971     for (int j = size; j < inImage->numRows - fullSize; j += fullSize) {
    972         for (int i = size; i < inImage->numCols - fullSize; i += fullSize) {
     971    for (int j = size; j < inImage->numRows - fullSize - size; j += fullSize) {
     972        for (int i = size; i < inImage->numCols - fullSize - size; i += fullSize) {
    973973
    974974            // Only generate polynomial values every kernel footprint, since we have already assumed
     
    991991#endif
    992992
    993             for (int y = j; y < PS_MIN(j + fullSize, numRows - size); y++) {
    994                 for (int x = i; x < PS_MIN(i + fullSize, numCols - size); x++) {
     993            for (int y = j; y < j + fullSize; y++) {
     994                for (int x = i; x < i + fullSize; x++) {
    995995                    convImage->data.F32[y][x] = background;
    996996
Note: See TracChangeset for help on using the changeset viewer.