LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::qmf::parameters Class Reference

the parameters for the class qmf More...

#include <ltiQmf.h>

Inheritance diagram for lti::qmf::parameters:
Inheritance graph
[legend]
Collaboration diagram for lti::qmf::parameters:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 parameters ()
 parameters (const parameters &other)
 ~parameters ()
const char * getTypeName () const
parameterscopy (const parameters &other)
parametersoperator= (const parameters &other)
virtual functor::parametersclone () const
const mathObjectgetKernel () const
void setKernel (const mathObject &aKernel)
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)

Public Attributes

kernel1D< float > kernel
int levels

Detailed Description

the parameters for the class qmf


Constructor & Destructor Documentation

lti::qmf::parameters::parameters (  ) 

default constructor

Reimplemented from lti::modifier::parameters.

lti::qmf::parameters::parameters ( const parameters other  ) 

copy constructor

Parameters:
other the parameters object to be copied

Reimplemented from lti::modifier::parameters.

lti::qmf::parameters::~parameters (  )  [virtual]

destructor

Reimplemented from lti::functor::parameters.


Member Function Documentation

virtual functor::parameters* lti::qmf::parameters::clone (  )  const [virtual]

returns a pointer to a clone of the parameters

Reimplemented from lti::modifier::parameters.

parameters& lti::qmf::parameters::copy ( const parameters other  ) 

copy the contents of a parameters object

Parameters:
other the parameters object to be copied
Returns:
a reference to this parameters object

Reimplemented from lti::filter::parameters.

const mathObject& lti::qmf::parameters::getKernel (  )  const

returns the kernel in use.

If it is not set yet, an lti::invalidParameters exception will be thrown

Returns:
a const reference to the filter kernel.
const char* lti::qmf::parameters::getTypeName (  )  const [virtual]

returns name of this type

Reimplemented from lti::modifier::parameters.

parameters& lti::qmf::parameters::operator= ( const parameters other  ) 

copy the contents of a parameters object

Parameters:
other the parameters object to be copied
Returns:
a reference to this parameters object
virtual bool lti::qmf::parameters::read ( ioHandler handler,
const bool  complete = true 
) [virtual]

write the parameters in the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::modifier::parameters.

void lti::qmf::parameters::setKernel ( const mathObject aKernel  ) 

sets the filter kernel to be used.

A copy of the given parameter will be made!

Parameters:
aKernel the filter kernel to be used

Note that the expected parameter is a filter kernel and NOT the wavelet coefficients. Remember that the kernel can be constructed by mirroring the wavelet coefficients. This kernel is also the low-pass kernel h(k). The high-pass kernel g(k) will be constructed using the fact that g(k)=(-1)^k h(1-k)

virtual bool lti::qmf::parameters::write ( ioHandler handler,
const bool  complete = true 
) const [virtual]

write the parameters in the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::modifier::parameters.


Member Data Documentation

The kernel is the 1D low-pass filter, which must hold several conditions:.

Let H(w) be the Fourier-Transformation of the kernel:

|H(0)| = 1; kernel[n] = O(n^-2) for n->infinity |H(w)|^2 + |H(w+Pi)|^2 = 1; The high-pass filter g(n) can be calculated from the kernel as: g(n) = (-1)^n kernel[1-k]

The LTI-Lib has some usual kernel predefined:

See also:
lti::tap9Symmetric, lti::battleLemarieKernel, lti::daubechies16Kernel, lti::haarKernel

The default kernel is the 9-Tap Symetric kernel

How many levels must have the result.

This value should be >= 1 For 1, the original channel will be returned Default value: 3


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:27:44 2010 for LTI-Lib by Doxygen 1.6.1