Woolz Image Processing  Version 1.7.5
AlgConvolve

Files

file  AlgConvolve.c
 Provides functions for convolving data arrays.
 

Functions

AlgError AlgConvolveD (int sizeArrayCnv, double *arrayCnv, int sizeArrayKrn, double *arrayKrn, int sizeArrayDat, double *arrayDat, AlgPadType pad, double padVal)
 Convolves double 1D kernel and data arrays, cnv = krn * data. The return convolution array must not be aliased to either the kernel or data arrays. More...
 
AlgError AlgConvolveF (int sizeArrayCnv, float *arrayCnv, int sizeArrayKrn, float *arrayKrn, int sizeArrayDat, float *arrayDat, AlgPadType pad, float padVal)
 Convolves float 1D kernel and data arrays, cnv = krn * data. The return convolution array must not be aliased to either the kernel or data arrays. More...
 

Detailed Description

Function Documentation

AlgError AlgConvolveD ( int  sizeArrayCnv,
double *  arrayCnv,
int  sizeArrayKrn,
double *  arrayKrn,
int  sizeArrayDat,
double *  arrayDat,
AlgPadType  pad,
double  padVal 
)

Convolves double 1D kernel and data arrays, cnv = krn * data. The return convolution array must not be aliased to either the kernel or data arrays.

Returns
Error code.
Parameters
sizeArrayCnvLength of return array must be >= max(len(dat),len(krn)).
arrayCnvReturn convolution array.
sizeArrayKrnLength of kernel array, must be odd.
arrayKrnKernel array.
sizeArrayDatLength of data array.
arrayDatData array.
padType of padding.
padValPadding value, only used when pad == ALG_PAD_VALUE.

References ALG_DBG, ALG_DBG_LVL_1, ALG_DBG_LVL_FN, ALG_ERR_FUNC, ALG_ERR_NONE, ALG_PAD_END, ALG_PAD_NONE, ALG_PAD_VALUE, and ALG_PAD_ZERO.

Referenced by WlzHistogramConvolve(), and WlzSepFilter().

AlgError AlgConvolveF ( int  sizeArrayCnv,
float *  arrayCnv,
int  sizeArrayKrn,
float *  arrayKrn,
int  sizeArrayDat,
float *  arrayDat,
AlgPadType  pad,
float  padVal 
)

Convolves float 1D kernel and data arrays, cnv = krn * data. The return convolution array must not be aliased to either the kernel or data arrays.

Returns
Error code.
Parameters
sizeArrayCnvLength of return array must be >= max(len(dat),len(krn)).
arrayCnvReturn convolution array.
sizeArrayKrnLength of kernel array, must be odd.
arrayKrnKernel array.
sizeArrayDatLength of data array.
arrayDatData array.
padType of padding.
padValPadding value, only used when pad == ALG_PAD_VALUE.

References ALG_DBG, ALG_DBG_LVL_1, ALG_DBG_LVL_FN, ALG_ERR_FUNC, ALG_ERR_NONE, ALG_PAD_END, ALG_PAD_NONE, ALG_PAD_VALUE, and ALG_PAD_ZERO.