Changeset 9730 for trunk/psLib/src/imageops/psImageConvolve.c
- Timestamp:
- Oct 24, 2006, 12:55:05 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageConvolve.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageConvolve.c
r9538 r9730 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 39$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-10- 13 21:13:48$7 * @version $Revision: 1.40 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-10-24 22:52:55 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 505 505 /* generate normalized gaussian */ \ 506 506 psVector *gaussnorm = psVectorAlloc(Npixel, PS_TYPE_##TYPE); \ 507 gaussnorm->n = gaussnorm->nalloc; \508 507 { \ 509 508 double sum = 0.0; \ … … 522 521 { \ 523 522 psVector *calculation = psVectorAlloc(Nx, PS_TYPE_##TYPE); \ 524 calculation->n = calculation->nalloc; \525 523 for (int j = 0; j < Ny; j++) { \ 526 524 ps##TYPE *vi = image->data.TYPE[j]; \ … … 573 571 /* Smooth in Y direction */ \ 574 572 psArray *rows = psArrayAlloc(Nrange); \ 575 rows->n = Nrange; \576 573 /* Smooth the first Nrange pixels, with renorm */ \ 577 574 int yMax = PS_MIN(Nrange, Ny); \ … … 579 576 for (int j = 0; j < yMax; j++) { \ 580 577 psVector *calculation = psVectorAlloc(Nx, PS_TYPE_##TYPE); \ 581 calculation->n = calculation->nalloc; \582 578 /* Zero the output row */ \ 583 579 memset(calculation->data.TYPE, 0, Nx*sizeof(ps##TYPE)); \
Note:
See TracChangeset
for help on using the changeset viewer.
