IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 24, 2008, 12:45:31 PM (18 years ago)
Author:
Paul Price
Message:

Wasn't masking at the end of a row/column.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageConvolve.c

    r17807 r17808  
    77/// @author Eugene Magnier, IfA
    88///
    9 /// @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
    10 /// @date $Date: 2008-05-24 22:23:14 $
     9/// @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
     10/// @date $Date: 2008-05-24 22:45:31 $
    1111///
    1212/// Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    831831            }
    832832        }
     833        if (masking) {
     834            // Mask from the minimum to the end of the row
     835            memset(&convData[y][min], 0xff, (numCols - min) * PSELEMTYPE_SIZEOF(PS_TYPE_MASK));
     836        }
    833837    }
    834838    for (int x = 0; x < numCols; x++) {
     
    854858            }
    855859        }
     860        if (masking) {
     861            // Mask from the minimum to the end of the column
     862            for (int i = min; i < numCols; i++) {
     863                outData[i][x] |= setVal;
     864            }
     865        }
    856866    }
    857867
Note: See TracChangeset for help on using the changeset viewer.