latest version v1.9 - last update 10 Apr 2010 |
Upsampling is the complementary functor to lti::downsampling. More...
#include <ltiUpsampling.h>
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 |
upsampling & | copy (const upsampling &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
void | setKernel (const mathObject &aKernel) |
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.
lti::upsampling::upsampling | ( | ) |
Default constructor.
lti::upsampling::upsampling | ( | const parameters & | par | ) |
Constructor with parameters.
lti::upsampling::upsampling | ( | const upsampling & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::upsampling::~upsampling | ( | ) | [virtual] |
destructor
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.
src | vector<channel::value_type> with the source data. | |
dest | vector<channel::value_type> where the result will be left. |
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.
src | vector<channel8::value_type> with the source data. | |
dest | vector<channel8::value_type> where the result will be left. |
operates on a copy of the given parameters.
Reimplemented from lti::modifier.
operates on a copy of the given parameters.
Reimplemented from lti::modifier.
bool lti::upsampling::apply | ( | vector< channel::value_type > & | srcdest | ) | const |
operates on the given parameter.
srcdest | vector<channel::value_type> with the source data. The result will be left here too. |
srcdest
. Reimplemented from lti::modifier.
bool lti::upsampling::apply | ( | vector< channel8::value_type > & | srcdest | ) | const |
operates on the given parameter.
srcdest | vector<channel8::value_type> with the source data. The result will be left here too. |
srcdest
. bool lti::upsampling::apply | ( | channel & | srcdest | ) | const [virtual] |
operates on the given parameter.
srcdest | channel with the source data. The result will be left here too. |
srcdest
. Reimplemented from lti::modifier.
bool lti::upsampling::apply | ( | channel8 & | srcdest | ) | const [virtual] |
operates on the given parameter.
srcdest | channel8 with the source data. The result will be left here too. |
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.
other | the functor to be copied |
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.