University of Rochester / Ultrasound Research Laboratory
2D Array Library

 
Class hierarchy   Compound list   File list   Header files   Compound Members   File Members   Examples  

conv.cpp File Reference

Two different convolution routines. More...

Functions


Detailed Description

Two different convolution routines.

$Id: conv.cpp,v 1.1 1999-03-05 16:31:32-05 ljb Exp ljb $ $Revision: 1.1 $

$Log: conv.cpp,v $ Revision 1.1 1999-03-05 16:31:32-05 ljb Initial revision


Function Documentation

WORD conv(float *filtcoef, float *x, float *y, int filtLen, int aLen)

Function used to perform convolutions:.

Parameters:
filtcoef - points to the filter coefficients,
x - points to input data.
y - points to output data.
filtLen - of the filter,
aLen - of input data.

It is assumed that the y output array is at least (filtLen+aLen-1) in length.

WORD conv2(float *filtcoef, float *x, float *y, float *tmp,int filtLen, int aLen)

Another convolution routine that requires a temporary array to help speed computations.

Parameters:
filtcoef - points to the filter coefficients.
x - points to input data.
y - points to output data. \patam tmp points to temporary array which must be (aLen + 2*FiltLen) long.
filtLen - of the filter.
aLen - of input data.

Examples:
Txaper.cpp.
Software written by
Larry Busse of LJB Development
and Bill Glenn, Al Murphy and John Losche of TETRAD Corporation
Documentation generated 3/11/1999