IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2007, 3:06:48 PM (19 years ago)
Author:
Paul Price
Message:

Fixing range on the mask convolution.

File:
1 edited

Legend:

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

    r13735 r13736  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-06-09 01:04:02 $
     6 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-06-09 01:06:48 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    401401
    402402                // Bottom stripe
    403                 for (int v = PS_MAX(y - footprint - size, 0); v < PS_MAX(y - size, 0); v++) {
     403                for (int v = PS_MAX(y - footprint - size, 0); v < y - size; v++) {
    404404                    for (int u = PS_MAX(x - footprint - size, 0);
    405405                         u <= PS_MIN(x + footprint + size, numCols - 1); u++) {
     
    418418                    }
    419419                    // Right side
    420                     for (int u = PS_MIN(x + size + 1, numCols - 1);
    421                          u <= PS_MIN(x + footprint + size, numCols - 1); u++) {
     420                    for (int u = x + size + 1; u <= PS_MIN(x + footprint + size, numCols - 1); u++) {
    422421                        maskData[v][u] |= PM_SUBTRACTION_MASK_FOOTPRINT;
    423422                    }
    424423                }
    425424                // Top stripe
    426                 for (int v = PS_MIN(y + size + 1, numRows - 1);
    427                      v <= PS_MIN(y + footprint + size, numRows - 1); v++) {
     425                for (int v = y + size + 1; v <= PS_MIN(y + footprint + size, numRows - 1); v++) {
    428426                    for (int u = PS_MAX(x - footprint - size, 0);
    429427                         u <= PS_MIN(x + footprint + size, numCols - 1); u++) {
Note: See TracChangeset for help on using the changeset viewer.