Changeset 7071 for trunk/psLib/src/imageops/psImageConvolve.c
- Timestamp:
- May 4, 2006, 4:48:35 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageConvolve.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageConvolve.c
r6937 r7071 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-0 4-21 20:45:56$7 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-05-05 02:48:34 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 603 603 /* generate normalized gaussian */ \ 604 604 psVector *gaussnorm = psVectorAlloc (Npixel, PS_TYPE_##TYPE); \ 605 gaussnorm->n = gaussnorm->nalloc; \ 605 606 sum = 0.0; \ 606 607 for (int i = -Nrange; i < Nrange + 1; i++) { \ … … 615 616 /* smooth in X direction */ \ 616 617 temp = psVectorAlloc (Nx, PS_TYPE_##TYPE); \ 618 temp->n = temp->nalloc; \ 617 619 for (int j = 0; j < Ny; j++) { \ 618 620 ps##TYPE *vi = image->data.TYPE[j]; \ … … 661 663 for (int j = 0; j < Nrange; j++) { \ 662 664 temp = psVectorAlloc (Nx, PS_TYPE_##TYPE); \ 665 temp->n = temp->nalloc; \ 663 666 /* zero the output row */ \ 664 667 memset (temp->data.TYPE, 0, Nx*sizeof(PS_TYPE_##TYPE)); \
Note:
See TracChangeset
for help on using the changeset viewer.
