latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class gradientFunctor More...
#include <ltiGradientFunctor.h>
Public Types | |
enum | eOutputFormat { Polar, Cartesic } |
enum | eKernelType { Optimal, OGD, Difference, Roberts, Sobel, Prewitt , Kirsch, Harris } |
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 | |
eOutputFormat | format |
eKernelType | kernelType |
int | gradientKernelSize |
float | ogdVariance |
the parameters for the class gradientFunctor
Kernel Type.
Optimal |
Use the optimal kernel gradients of Ando (see lti::gradientKernelX). |
OGD |
Use oriented Gaussian derivatives. |
Difference |
Simplest (and fastest) kernel just right-left, top-bottom. |
Roberts |
Also very simple, but has a location-bias of half pixel. These are 2x2 kernels, |
Sobel |
3x3 separable kernel with a 1 2 1, -1 0 1 sub-kernels (see lti::sobelKernelX) |
Prewitt |
3x3 separable kernel with a 1 1 1, -1 0 1 sub-kernels (see lti::prewittKernelX) |
Kirsch |
3x3 non-separable kernel (see lti::robinsonKernelX) |
Harris |
3x3 non-separable kernel (see lti::kirschKernelX) 1x5 separable kernel -2 -1 0 1 2 (see lti::harrisKernelX) |
lti::gradientFunctor::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::transform::parameters.
Reimplemented in lti::colorContrastGradient::parameters.
lti::gradientFunctor::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::transform::parameters.
Reimplemented in lti::colorContrastGradient::parameters.
lti::gradientFunctor::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::functor::parameters.
Reimplemented in lti::colorContrastGradient::parameters.
virtual functor::parameters* lti::gradientFunctor::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::transform::parameters.
Reimplemented in lti::colorContrastGradient::parameters.
parameters& lti::gradientFunctor::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::transform::parameters.
Reimplemented in lti::colorContrastGradient::parameters.
const char* lti::gradientFunctor::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::transform::parameters.
Reimplemented in lti::colorContrastGradient::parameters.
parameters& lti::gradientFunctor::parameters::operator= | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented in lti::colorContrastGradient::parameters.
virtual bool lti::gradientFunctor::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::functor::parameters.
Reimplemented in lti::colorContrastGradient::parameters.
virtual bool lti::gradientFunctor::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::functor::parameters.
Reimplemented in lti::colorContrastGradient::parameters.
The output of the apply methods can be in polar or cartesic coordinates.
You can specify here which format you prefer.
Default value: Polar
Size of the kernel used.
This attribute is used only for the Optimal and OGD Kernel types.
For the Optimal kernel type, the value must be 3, 4, or 5. For the OGD odd values greater or equal 3 should be used.
Default value: 3
Type of gradient kernel to be used.
Default value: Optimal
Variance used for the Gaussian.
This argument has effect only if kernelType is OGD.
It is the variance use for the Gaussian to be derived as approximation for a gradient kernel.
Default value: -1 (i.e. the variance will be computed from the size of the kernel (gradientKernelSize) )