latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class histograming1D More...
#include <ltiHistograming1D.h>
Public Types | |
enum | eMode { Normal, Extremes, Interval } |
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 | |
kernel1D< double > | kernel |
bool | smooth |
int | cells |
eMode | mode |
bool | normalize |
float | intervalLow |
float | intervalHigh |
float | ignoreValue |
the parameters for the class histograming1D
type to specify the mode of histogram
Normal |
the histogram will be calculated between 0 and 1.0 for channels or between 0 and 255 for channel8s. Values under 0 will be assigned to 0 and values above 1.0 (or 255) will be assigned to the |
Extremes |
the histogram will be calculated between the min and max values of the input data |
Interval |
the histogram will be calculated between the given interval values. Note that the given values will be interpreted "as is", for example if you give as interval 0-1.0, the whole channel value range will be histogramed, but only two values of channel8 will be considered!. Only the values in the interval will be considered, i.e. elements outside the interval will be ignored. |
lti::histograming1D::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::globalFeatureExtractor::parameters.
lti::histograming1D::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::globalFeatureExtractor::parameters.
lti::histograming1D::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::globalFeatureExtractor::parameters.
virtual functor::parameters* lti::histograming1D::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::globalFeatureExtractor::parameters.
parameters& lti::histograming1D::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::globalFeatureExtractor::parameters.
const char* lti::histograming1D::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::globalFeatureExtractor::parameters.
parameters& lti::histograming1D::parameters::operator= | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
virtual bool lti::histograming1D::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::functor::parameters.
virtual bool lti::histograming1D::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.
Number of cells in the histogram.
Default: 256
this value will be ignored (Default -1.0f)
if mode==Interval, this is the highest value to be considered (Default 1.0f)
if mode==Interval, this is the lowest value considered (Default 0.0f)
The smoothing kernel.
Default value: the default gaussian kernel of size 3
the mode of histograming (see eMode).
If the mode is "Normal", the outliers will be considered as part of the nearest cell. (for example if using a channel, and the value of a pixel is -0.1 the cell 0 will be incremented). Default value: Normal
if true, the histogram will be normalized (to have an area of 1) Default: false
smooth specify if the kernel should be apply at the end of the histograming.
Default value: false