IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2006, 4:48:35 PM (20 years ago)
Author:
drobbin
Message:

Fixed some tiny things and working on fixing psImageSmooth (not done).

File:
1 edited

Legend:

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

    r6937 r7071  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-04-21 20:45:56 $
     7 *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-05-05 02:48:34 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    603603        /* generate normalized gaussian */ \
    604604        psVector *gaussnorm = psVectorAlloc (Npixel, PS_TYPE_##TYPE); \
     605        gaussnorm->n = gaussnorm->nalloc; \
    605606        sum = 0.0; \
    606607        for (int i = -Nrange; i < Nrange + 1; i++) { \
     
    615616        /* smooth in X direction */ \
    616617        temp = psVectorAlloc (Nx, PS_TYPE_##TYPE); \
     618        temp->n = temp->nalloc; \
    617619        for (int j = 0; j < Ny; j++) { \
    618620            ps##TYPE *vi = image->data.TYPE[j]; \
     
    661663        for (int j = 0; j < Nrange; j++) { \
    662664            temp = psVectorAlloc (Nx, PS_TYPE_##TYPE); \
     665            temp->n = temp->nalloc; \
    663666            /* zero the output row */ \
    664667            memset (temp->data.TYPE, 0, Nx*sizeof(PS_TYPE_##TYPE)); \
Note: See TracChangeset for help on using the changeset viewer.