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

lti::upsampling::parameters Class Reference

the parameters for the class upsampling More...

#include <ltiUpsampling.h>

Inheritance diagram for lti::upsampling::parameters:
Inheritance graph
[legend]
Collaboration diagram for lti::upsampling::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)
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

point factor

Protected Attributes

mathObjectkernel

Detailed Description

the parameters for the class upsampling


Constructor & Destructor Documentation

lti::upsampling::parameters::parameters (  ) 

default constructor

Reimplemented from lti::modifier::parameters.

lti::upsampling::parameters::parameters ( const parameters other  ) 

copy constructor

Parameters:
other the parameters object to be copied

Reimplemented from lti::modifier::parameters.

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

destructor

Reimplemented from lti::functor::parameters.


Member Function Documentation

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

returns a pointer to a clone of the parameters

Reimplemented from lti::modifier::parameters.

parameters& lti::upsampling::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::upsampling::parameters::getKernel (  )  const

Return a const reference to the kernel in use.

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

The default value for this kernel is a 3x3 mask, generated as the outer product of (0.5,1,0.5) with itself. (It is implemented as a separable kernel, of course!)

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

returns name of this type

Reimplemented from lti::modifier::parameters.

virtual bool lti::upsampling::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::upsampling::parameters::setKernel ( const mathObject aKernel  ) 

Set the filter kernel to be used.

A copy of the given parameter will be made!

Parameters:
aKernel the filter kernel to be used.

If the kernel is not explicitly set, the default value will be a 3x3 mask, generated as the outer product of (0.5,1,0.5) with itself. (It is implemented as a separable kernel, of course!)

virtual bool lti::upsampling::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

Upsampling factor.

Default value: (2,2)

Interpolation filter.

See also:
setKernel()

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

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