IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 20, 2011, 3:55:38 PM (14 years ago)
Author:
eugene
Message:

create a pre-alloc version of image smooth to avoid excessive allocs

File:
1 edited

Legend:

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

    r30595 r32725  
    2525#define PS_TYPE_KERNEL_DATA F32        ///< the data member to use for kernel image */
    2626#define PS_TYPE_KERNEL_NAME "psF32"    ///< the data type for kernel as a string */
     27
     28/// a structure to contain data related to image smoothing with a 1D gauss kernel
     29typedef struct {
     30    int Nx;
     31    int Ny;
     32    int Nrange;
     33    psF32 *resultX;
     34    psF32 *resultY;
     35    psVector *kernel;
     36} psImageSmooth_PreAlloc_Data;
    2737
    2838/// A convolution kernel
     
    277287);
    278288
     289psImageSmooth_PreAlloc_Data *psImageSmooth_PreAlloc_DataAlloc (psImage *image, double sigma, double Nsigma);
     290bool psImageSmooth_PreAlloc_F32(psImage *image, psImageSmooth_PreAlloc_Data *smdata);
     291
    279292/// Control threading for image convolution functions
    280293///
Note: See TracChangeset for help on using the changeset viewer.