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

lti::upsampling Class Reference
[Linear filtering]

Upsampling is the complementary functor to lti::downsampling. More...

#include <ltiUpsampling.h>

Inheritance diagram for lti::upsampling:
Inheritance graph
[legend]
Collaboration diagram for lti::upsampling:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 the parameters for the class upsampling More...

Public Member Functions

 upsampling ()
 upsampling (const parameters &par)
 upsampling (const upsampling &other)
virtual ~upsampling ()
virtual const char * getTypeName () const
bool apply (channel8 &srcdest) const
bool apply (channel &srcdest) const
bool apply (vector< channel8::value_type > &srcdest) const
bool apply (vector< channel::value_type > &srcdest) const
bool apply (const channel8 &src, channel8 &dest) const
bool apply (const channel &src, channel &dest) const
bool apply (const vector< channel8::value_type > &src, vector< channel8::value_type > &dest) const
bool apply (const vector< channel::value_type > &src, vector< channel::value_type > &dest) const
upsamplingcopy (const upsampling &other)
virtual functorclone () const
const parametersgetParameters () const
void setKernel (const mathObject &aKernel)

Detailed Description

Upsampling is the complementary functor to lti::downsampling.

This functor scales up the given data with an integer factor.

It will use the interpolation filter and upsampling factors given by upsampling::parameters.

If you need interpolation among the samples you should consider lti::scaling.

See also:
lti::scaling, lti::filledUpsampling, lti::decimation, lti::downsampling

Constructor & Destructor Documentation

lti::upsampling::upsampling (  ) 

Default constructor.

lti::upsampling::upsampling ( const parameters par  ) 

Constructor with parameters.

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

copy constructor

Parameters:
other the object to be copied
virtual lti::upsampling::~upsampling (  )  [virtual]

destructor


Member Function Documentation

bool lti::upsampling::apply ( const vector< channel::value_type > &  src,
vector< channel::value_type > &  dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src vector<channel::value_type> with the source data.
dest vector<channel::value_type> where the result will be left.
Returns:
true if ok, false otherwise.

Reimplemented from lti::modifier.

bool lti::upsampling::apply ( const vector< channel8::value_type > &  src,
vector< channel8::value_type > &  dest 
) const

operates on a copy of the given parameters.

Parameters:
src vector<channel8::value_type> with the source data.
dest vector<channel8::value_type> where the result will be left.
Returns:
true if ok, false otherwise.
bool lti::upsampling::apply ( const channel src,
channel dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest channel where the result will be left.
Returns:
true if ok, false otherwise.

Reimplemented from lti::modifier.

bool lti::upsampling::apply ( const channel8 src,
channel8 dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel8 with the source data.
dest channel8 where the result will be left.
Returns:
true if ok, false otherwise.

Reimplemented from lti::modifier.

bool lti::upsampling::apply ( vector< channel::value_type > &  srcdest  )  const

operates on the given parameter.

Parameters:
srcdest vector<channel::value_type> with the source data. The result will be left here too.
Returns:
a reference to the srcdest.

Reimplemented from lti::modifier.

bool lti::upsampling::apply ( vector< channel8::value_type > &  srcdest  )  const

operates on the given parameter.

Parameters:
srcdest vector<channel8::value_type> with the source data. The result will be left here too.
Returns:
a reference to the srcdest.
bool lti::upsampling::apply ( channel srcdest  )  const [virtual]

operates on the given parameter.

Parameters:
srcdest channel with the source data. The result will be left here too.
Returns:
a reference to the srcdest.

Reimplemented from lti::modifier.

bool lti::upsampling::apply ( channel8 srcdest  )  const [virtual]

operates on the given parameter.

Parameters:
srcdest channel8 with the source data. The result will be left here too.
Returns:
a reference to the srcdest.

Reimplemented from lti::modifier.

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

returns a pointer to a clone of this functor.

Implements lti::functor.

upsampling& lti::upsampling::copy ( const upsampling other  ) 

copy data of "other" functor.

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

Reimplemented from lti::functor.

const parameters& lti::upsampling::getParameters (  )  const

returns used parameters

Reimplemented from lti::modifier.

virtual const char* lti::upsampling::getTypeName (  )  const [virtual]

returns the name of this type ("upsampling")

Reimplemented from lti::modifier.

void lti::upsampling::setKernel ( const mathObject aKernel  ) 

shortcut to set the filter kernel in the functor parameters.

The other parameters remain unchanged.


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