latest version v1.9 - last update 10 Apr 2010 |
The parameters for the class grayWorldNormalization. More...
#include <ltiGrayWorldNormalization.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (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 | |
Computation of normalization constant. | |
float | kappa |
float | nu |
float | gamma |
General options | |
bool | ignoreColorFlag |
rgbPixel | ignoreColor |
bool | allowOverflow |
Local normalization | |
bool | localNormalization |
int | windowSize |
The parameters for the class grayWorldNormalization.
This class provides mainly the parameters to implement the normalization equation:
With:
lti::grayWorldNormalization::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::colorNormalizationBase::parameters.
lti::grayWorldNormalization::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::colorNormalizationBase::parameters.
lti::grayWorldNormalization::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::colorNormalizationBase::parameters.
virtual functor::parameters* lti::grayWorldNormalization::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::colorNormalizationBase::parameters.
parameters& lti::grayWorldNormalization::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::colorNormalizationBase::parameters.
const char* lti::grayWorldNormalization::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::colorNormalizationBase::parameters.
virtual bool lti::grayWorldNormalization::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::colorNormalizationBase::parameters.
virtual bool lti::grayWorldNormalization::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::colorNormalizationBase::parameters.
default is false.
Set this to true, if you want to allow overflow values in the normalized channels. Otherwise over- and underflows will be set to the allowed max resp. min values.
Some times a "total" normalization will damage the color information in a way, that this cannot be used in recognition processes.
In order to avoid to strong normalizations, this gamma factor can be used. Its value MUST be between 0 and 1. 0 means no normalization at all and 1 the best normalization to be achieved.
Default value: 1
This color will be ignored in the computations of the norm, if the ignoreColorFlag is true.
This way, the background can be ignored if it was "markt" with a specific color (usually black).
Default value: rgbPixel(0,0,0) (Black)
Flag to indicate if a specific color should be ignored (true) or if the whole image should be considered to determine the normalization factors (false).
Please note that this flag will have effect if and only if the localNormalization is deactivated!
Default value: false
Scaling factor for the standard deviation.
Default = 3.0
Scaling factor for the channel mean.
Default value: 1
Window size specify the neighbourhood to be considered in the computations of the normalization factors.
This element has effect only if localInvariance
is true.
Default value: 64;