latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class regionGraphFunctor More...
#include <ltiRegionGraphFunctor.h>
Public Types | |
enum | eMergeMode { Fast, Optimal } |
Public Member Functions | |
parameters (const eMergeMode &mode=Fast, const weight_type &threshold=weight_type()) | |
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 | |
eMergeMode | mergeMode |
weight_type | mergeThreshold |
int | minRegionNumber |
the parameters for the class regionGraphFunctor
enum lti::regionGraphFunctor::parameters::eMergeMode |
lti::regionGraphFunctor< G >::parameters::parameters | ( | const eMergeMode & | mode = Fast , |
|
const weight_type & | threshold = weight_type() | |||
) | [inline] |
lti::regionGraphFunctor< G >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
copy constructor
other | the parameters object to be copied |
References lti::regionGraphFunctor< G >::parameters::copy().
lti::regionGraphFunctor< G >::parameters::~parameters | ( | ) | [inline, virtual] |
destructor
Reimplemented from lti::functor::parameters.
virtual functor::parameters* lti::regionGraphFunctor< G >::parameters::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the parameters
Implements lti::functor::parameters.
References lti::functor::parameters::parameters().
parameters& lti::regionGraphFunctor< G >::parameters::copy | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
References lti::functor::parameters::copy(), lti::regionGraphFunctor< G >::parameters::mergeMode, lti::regionGraphFunctor< G >::parameters::mergeThreshold, and lti::regionGraphFunctor< G >::parameters::minRegionNumber.
Referenced by lti::regionGraphFunctor< G >::parameters::operator=(), and lti::regionGraphFunctor< G >::parameters::parameters().
const char* lti::regionGraphFunctor< G >::parameters::getTypeName | ( | void | ) | const [inline, virtual] |
returns name of this type
Reimplemented from lti::functor::parameters.
parameters& lti::regionGraphFunctor< G >::parameters::operator= | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
References lti::regionGraphFunctor< G >::parameters::copy().
virtual bool lti::regionGraphFunctor< G >::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, 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.
References lti::regionGraphFunctor< G >::parameters::Fast, lti::regionGraphFunctor< G >::parameters::mergeMode, lti::regionGraphFunctor< G >::parameters::mergeThreshold, lti::regionGraphFunctor< G >::parameters::minRegionNumber, lti::regionGraphFunctor< G >::parameters::Optimal, lti::ioHandler::readBegin(), and lti::ioHandler::readEnd().
virtual bool lti::regionGraphFunctor< G >::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, 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.
References lti::regionGraphFunctor< G >::parameters::Fast, lti::regionGraphFunctor< G >::parameters::mergeMode, lti::regionGraphFunctor< G >::parameters::mergeThreshold, lti::regionGraphFunctor< G >::parameters::minRegionNumber, lti::regionGraphFunctor< G >::parameters::Optimal, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().
eMergeMode lti::regionGraphFunctor< G >::parameters::mergeMode |
Merge strategy to be used:
No distances between nodes will be recomputed, saving lots of time. Additionally, the merge order of nodes is
Referenced by lti::regionGraphFunctor< G >::parameters::copy(), lti::regionGraphFunctor< G >::parameters::parameters(), lti::regionGraphFunctor< G >::parameters::read(), and lti::regionGraphFunctor< G >::parameters::write().
weight_type lti::regionGraphFunctor< G >::parameters::mergeThreshold |
For the merge methods, this is the maximal weight between two nodes allowed.
This means, edges with weights larger than this value won't be merged.
Very low values will produce an oversegmentation, larger values produce undersegmentations.
Default value: weight_type()
Referenced by lti::regionGraphFunctor< G >::parameters::copy(), lti::regionGraphFunctor< G >::parameters::parameters(), lti::regionGraphFunctor< G >::parameters::read(), and lti::regionGraphFunctor< G >::parameters::write().
int lti::regionGraphFunctor< G >::parameters::minRegionNumber |
Minimum number of regions.
The merge operation can be controled by the merge-threshold, but if it is set too large, the final result would contain just one node. This parameter allows you to specify the minimal number of nodes the graph has to retain after merging. Of course, if the input graph has already less nodes than the number specified here, then nothing will be done.
Default value: 1
Referenced by lti::regionGraphFunctor< G >::parameters::copy(), lti::regionGraphFunctor< G >::parameters::parameters(), lti::regionGraphFunctor< G >::parameters::read(), and lti::regionGraphFunctor< G >::parameters::write().