latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class labelAdjacencyMap More...
#include <ltiLabelAdjacencyMap.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 | |
bool | minColors |
palette | thePalette |
int | neighborhood |
Static Public Attributes | |
static const palette | defaultPalette |
the parameters for the class labelAdjacencyMap
lti::labelAdjacencyMap::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::functor::parameters.
lti::labelAdjacencyMap::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
lti::labelAdjacencyMap::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::functor::parameters.
virtual functor::parameters* lti::labelAdjacencyMap::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Implements lti::functor::parameters.
parameters& lti::labelAdjacencyMap::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
const char* lti::labelAdjacencyMap::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::functor::parameters.
parameters& lti::labelAdjacencyMap::parameters::operator= | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
virtual bool lti::labelAdjacencyMap::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.
virtual bool lti::labelAdjacencyMap::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.
const palette lti::labelAdjacencyMap::parameters::defaultPalette [static] |
Default color palette.
{lti::Black, lti::Red, lti::Green, lti::Blue, lti::Yellow, lti::Cyan, lti::Magenta, lti::DarkOrange, lti::Lemon, lti::Violet}
If true, the mininum number of colors will be used, which will depend on the neighborhood used.
(a max of 4 colors is required for a 4 neighborhood, and a max of 8 color for a 8 neighborhood).
If false, all colors in the palette might be used.
Default: false
Neighborhood used.
Valid values are 4 and 8. Other values will be considered as 8-neighborhood.
Default value: 8
The colors used to denote the labels.
Note that the assigment is not 1 to 1, but will be done depending on the adjacency of the labels.
Default: {lti::Black,lti::Red,lti::Green,lti::Blue,lti::Yellow, lti::Cyan,lti::Magenta,lti::DarkOrange,lti::Lemon, lti::Violet}
This default palette can be access anytime as lti::labelAdjacencyMap::parameters::defaultPalette