IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2007, 5:43:49 PM (19 years ago)
Author:
Paul Price
Message:

Ensure entire image is checked for masked pixels. Can't leave out the
strips on the top and bottom, because masked pixels in there will
expand into the interesting part of the image.

File:
1 edited

Legend:

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

    r14200 r14281  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-07-13 22:03:43 $
     6 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-07-18 03:43:49 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    463463
    464464    // Mask the bad pixels, and around them
    465     for (int y = footprint + size; y < numRows - footprint - size; y++) {
     465    for (int y = 0; y < numRows; y++) {
    466466        for (int x = 0; x < numCols; x++) {
    467467            if (inData[y][x] & maskVal) {
    468468                maskData[y][x] |= PM_SUBTRACTION_MASK_INPUT;
    469469                // Block out the entire stamp footprint around this pixel
    470                 for (int v = y - footprint; v <= y + footprint; v++) {
    471                     for (int u = x - footprint; u <= x + footprint; u++) {
     470                for (int v = PS_MAX(y - footprint, 0); v <= PS_MIN(y + footprint, numRows - 1); v++) {
     471                    for (int u = PS_MAX(x - footprint, 0); u <= PS_MIN(x + footprint, numCols - 1); u++) {
    472472                        maskData[v][u] |= PM_SUBTRACTION_MASK_FOOTPRINT;
    473473                    }
Note: See TracChangeset for help on using the changeset viewer.