latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class upsampling More...
#include <ltiUpsampling.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
virtual functor::parameters * | clone () const |
const mathObject & | getKernel () 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 | |
mathObject * | kernel |
the parameters for the class upsampling
lti::upsampling::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::modifier::parameters.
lti::upsampling::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::modifier::parameters.
lti::upsampling::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::functor::parameters.
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
other | the parameters object to be copied |
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!)
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
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. |
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!
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
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. |
Reimplemented from lti::modifier::parameters.
Upsampling factor.
Default value: (2,2)
mathObject* lti::upsampling::parameters::kernel [protected] |
Interpolation filter.