Changeset 14332 for trunk/psLib/src/imageops/psImageConvolve.c
- Timestamp:
- Jul 20, 2007, 10:12:44 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageConvolve.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageConvolve.c
r13350 r14332 7 7 /// @author Eugene Magnier, IfA 8 8 /// 9 /// @version $Revision: 1.5 2$ $Name: not supported by cvs2svn $10 /// @date $Date: 2007-0 5-11 16:48:31 $9 /// @version $Revision: 1.53 $ $Name: not supported by cvs2svn $ 10 /// @date $Date: 2007-07-20 20:12:31 $ 11 11 /// 12 12 /// Copyright 2004-2007 Institute for Astronomy, University of Hawaii … … 200 200 } 201 201 202 psImage *psImageConvolveDirect(const psImage *in, 202 psImage *psImageConvolveDirect(psImage *out, 203 const psImage *in, 203 204 const psKernel *kernel) 204 205 { … … 222 223 int numCols = in->numCols; // Number of columns 223 224 224 psImage *out; // Image to be returned225 226 225 #if 1 227 226 … … 231 230 case PS_TYPE_##TYPE: { \ 232 231 ps##TYPE **inData = in->data.TYPE; /* Dereference input data */ \ 233 out = psImage Alloc(numCols, numRows, PS_TYPE_##TYPE); \232 out = psImageRecycle(out, numCols, numRows, PS_TYPE_##TYPE); \ 234 233 for (int row = 0; row < numRows; row++) { \ 235 234 ps##TYPE *outRow = out->data.TYPE[row]; \ … … 253 252 case PS_TYPE_##TYPE: { \ 254 253 ps##TYPE **inData = in->data.TYPE; /* Dereference input data */ \ 255 out = psImage Alloc(numCols, numRows, PS_TYPE_##TYPE); \254 out = psImageRecycle(out, numCols, numRows, PS_TYPE_##TYPE); \ 256 255 psImageInit(out, 0.0); \ 257 256 for (int ky = yMin; ky <= yMax; ky++) { \
Note:
See TracChangeset
for help on using the changeset viewer.
