latest version v1.9 - last update 10 Apr 2010 |
The parameters for the class scaling. More...
#include <ltiScaling.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual functor::parameters * | clone () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
tpoint< float > | scale |
eInterpolatorType | interpolatorType |
The parameters for the class scaling.
lti::scaling::parameters::parameters | ( | ) |
Default constructor.
Reimplemented from lti::modifier::parameters.
lti::scaling::parameters::parameters | ( | const parameters & | other | ) |
Copy constructor.
other | the parameters object to be copied |
Reimplemented from lti::modifier::parameters.
lti::scaling::parameters::~parameters | ( | ) | [virtual] |
Destructor.
Reimplemented from lti::functor::parameters.
virtual functor::parameters* lti::scaling::parameters::clone | ( | ) | const [virtual] |
Returns a pointer to a clone of the parameters.
Reimplemented from lti::modifier::parameters.
parameters& lti::scaling::parameters::copy | ( | const parameters & | other | ) |
Copy the contents of a parameters object.
other | the parameters object to be copied |
Reimplemented from lti::modifier::parameters.
const char* lti::scaling::parameters::getTypeName | ( | ) | const [virtual] |
Returns name of this type.
Reimplemented from lti::modifier::parameters.
parameters& lti::scaling::parameters::operator= | ( | const parameters & | other | ) |
Copy the contents of a parameters object.
other | the parameters object to be copied |
virtual bool lti::scaling::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
Read the parameters from 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.
virtual bool lti::scaling::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.
Interpolator type to be used.
Default value: BilinearInterpolator
Scaling factor.
Each axis of the image can be scaled by a different factor. The x component of this point will be the horizontal scaling factor and the y component the vertical scaling factor.
Only positive values are allowed. You can flip you image using lti::flipImage if you need to first.
With scale between 0 and 1 this functor does a down-sampling and above 1.0 up-sampling.
Default value: tpoint<float>(sqrt(2),sqrt(2))