WVwavelet(3) USC Math Department
Back to wvlib wavelet function index
WVwavelet(3)

Name

wvCreateWavelet, wvDestroyWavelet - register the parts of a wavelet

Synopsis

WVwavelet wvCreateWavelet(const char *name, WVfilter coarseFilter, WVfilter detailFilter, WVrecon coarseRecon, WVrecon detailRecon);

void wvDestroyWavelet(WVwavelet wavelet);

Description

wvCreateWavelet returns a wavelet initialized with the values passed to this function.

A WVwavelet is a pointer to a structure containing the parts of the wavelet: the coarse and detail filters and the coarse and detail reconstructors. It also contains the name of the wavelet.

<wv/wv_filter.h> defines the wavelet structure as:

  typedef struct _WVwaveletStruct {
      WVfilter    coarseFilter;
      WVfilter    detailFilter;
      WVrecon     coarseRecon;
      WVrecon     detailRecon;
      const char *name;
   } WVwaveletStruct, *WVwavelet;
   

Example

#include <wv/wv_filter.h>
  
    .
    .
    .
{
    WVwavelet myWavelet;

    myWavelet = wvCreateWavelet("Integer Haar",
	myHaarCoarseF,
	myHaarDetailF,
	myHaarCoarseR,
	myHaarDetailR);

    basis = wvBuildBasis(mat, myWavelet, wvSymmetricEvenExt);
    .
    .
    .
}

See Also

wvBuildBasis(3), WVextension(3), WVfilter(3), WVrecon(3)

Back to wvlib wavelet function index Last Updated: 30 January 1998