latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class downsampling More...
#include <ltiDownsampling.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 | |
mathObject * | kernel |
point | factor |
the parameters for the class downsampling
lti::downsampling::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::modifier::parameters.
lti::downsampling::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::modifier::parameters.
lti::downsampling::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::functor::parameters.
virtual functor::parameters* lti::downsampling::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::modifier::parameters.
parameters& lti::downsampling::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::downsampling::parameters::getKernel | ( | ) | const |
const char* lti::downsampling::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::modifier::parameters.
virtual bool lti::downsampling::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::downsampling::parameters::setKernel | ( | const mathObject & | aKernel | ) |
sets the filter kernel to be used.
A copy of the given parameter will be made!
Default value: see attribute lti::downsampling::parameters::kernel
aKernel | the filter kernel to be used |
virtual bool lti::downsampling::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.
the downsampling factor
Only the pixels with coordinates x=n*factor.x or y=m*factor.y, (n and m integers) will be taken.
The default value is (2,2).
The filter to be used.
This should be a separable kernel of the same type as the object to be decimated, with only one filter pair. If not, some time will be required to construct an adequate filter kernel!
The default value for the kernel is a 3x3 separable kernel, with row/column kernel of the form (0.25 0.5 0.25)x(0.25 0.5 0.25).