latest version v1.9 - last update 10 Apr 2010 |
The parameters for the class localColorFeature. More...
#include <ltiLocalColorFeature.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 | |
unsigned int | slices |
bool | overlap |
bool | normalize |
int | maskRadius |
The parameters for the class localColorFeature.
lti::localColorFeature::parameters::parameters | ( | ) |
Default constructor.
Reimplemented from lti::localFeatureExtractor::parameters.
lti::localColorFeature::parameters::parameters | ( | const parameters & | other | ) |
Copy constructor.
other | the parameters object to be copied |
Reimplemented from lti::localFeatureExtractor::parameters.
lti::localColorFeature::parameters::~parameters | ( | ) | [virtual] |
Destructor.
Reimplemented from lti::localFeatureExtractor::parameters.
virtual functor::parameters* lti::localColorFeature::parameters::clone | ( | ) | const [virtual] |
Returns a pointer to a clone of the parameters.
Reimplemented from lti::localFeatureExtractor::parameters.
parameters& lti::localColorFeature::parameters::copy | ( | const parameters & | other | ) |
Copy the contents of a parameters object.
other | the parameters object to be copied |
Reimplemented from lti::localFeatureExtractor::parameters.
const char* lti::localColorFeature::parameters::getTypeName | ( | ) | const [virtual] |
Returns name of this type.
Reimplemented from lti::localFeatureExtractor::parameters.
parameters& lti::localColorFeature::parameters::operator= | ( | const parameters & | other | ) |
Copy the contents of a parameters object.
other | the parameters object to be copied |
Reimplemented from lti::localFeatureExtractor::parameters.
virtual bool lti::localColorFeature::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::localFeatureExtractor::parameters.
virtual bool lti::localColorFeature::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::localFeatureExtractor::parameters.
Mask radius.
The feature computation will be made using a template mask of a fixed size that is computed only once, when you set the parameters. The values in this fixed mask will be taken from the image using bilinear interpolation.
The greater the radius, the more pixels will be considered to compute the mean values of each slice, but the more the time it will take to compute each location.
This value should be greater than 2 and smaller than 255
Default value: 7
Normalize.
If true, the final feature vector will be normalized so that the sum of all elements equals one.
Default value: false
unsigned int lti::localColorFeature::parameters::slices |
Number of slices.
A given location will be interpreted as a circle, that will be divided in this number of slices. The minimal allowed value of slices is one, and the maximal allowed slices value is 120.
The number of dimensions of the output feature vector will be "slices" or "2*slices" depending on the "overlap" parameter.
Default value: 6