latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class channelStatistics More...
#include <ltiChannelStatistics.h>
Public Types | |
enum | eBRGBFilterType { Minimum = 0, Maximum, Average, Gaussian, Median } |
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) |
void | setSplitter (splitImage *theSplitter, const bool own=true) |
const splitImage & | getSplitter () const |
Public Attributes | |
eBRGBFilterType | type |
bool | ownsSplitter |
rgbColor | ignoreColor |
Protected Attributes | |
splitImage * | splitter |
the parameters for the class channelStatistics
lti::channelStatistics::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::globalFeatureExtractor::parameters.
lti::channelStatistics::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::globalFeatureExtractor::parameters.
lti::channelStatistics::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::globalFeatureExtractor::parameters.
virtual functor::parameters* lti::channelStatistics::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::globalFeatureExtractor::parameters.
parameters& lti::channelStatistics::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 splitImage& lti::channelStatistics::parameters::getSplitter | ( | ) | const |
get a reference to the splitter object
const char* lti::channelStatistics::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::globalFeatureExtractor::parameters.
parameters& lti::channelStatistics::parameters::operator= | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
virtual bool lti::channelStatistics::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.
void lti::channelStatistics::parameters::setSplitter | ( | splitImage * | theSplitter, | |
const bool | own = true | |||
) |
set the splitImage functor to be used.
This will delete the actual splitter (if this object owns it), before assigning it to the actual parameter pointer.
virtual bool lti::channelStatistics::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.
The color which is ignored when the statistics is built.
This works only with the unmasked apply methods. If a mask or an areapoint object is given, these are used instead and this parameter is ignored.
Indicates whether the parameters own the splitImage pointer or not.
If they do, the pointer will be deleted in the destructor, if they don't, the class using the channelStatistics is responsible for deleting the the pointer. Default is true.
When channelStatistics is read from a file, this parameter is set to true, since a new pointer is generated.
splitImage* lti::channelStatistics::parameters::splitter [protected] |
The splitImage functor used for selecting the channels.
Default is splitImageToRGB.
Kind of calculation rule used to get the values.
Default value is Average