Changeset 14281
- Timestamp:
- Jul 17, 2007, 5:43:49 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmSubtraction.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtraction.c
r14200 r14281 4 4 * @author GLG, MHPCC 5 5 * 6 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-07-1 3 22:03:43$6 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-07-18 03:43:49 $ 8 8 * 9 9 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii … … 463 463 464 464 // 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++) { 466 466 for (int x = 0; x < numCols; x++) { 467 467 if (inData[y][x] & maskVal) { 468 468 maskData[y][x] |= PM_SUBTRACTION_MASK_INPUT; 469 469 // 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++) { 472 472 maskData[v][u] |= PM_SUBTRACTION_MASK_FOOTPRINT; 473 473 }
Note:
See TracChangeset
for help on using the changeset viewer.
