latest version v1.9 - last update 10 Apr 2010 |
This functor uses a similarity matrix (see lti::similarityMatrix) and a threshold value given in the parameters to decide if two objects in a mask (also returned by lti::similarityMatrix or by lti::objectsFromMask) should be merged or not. More...
#include <ltiRegionMerge.h>
Classes | |
class | parameters |
the parameters for the class regionMerge More... | |
Public Member Functions | |
regionMerge () | |
regionMerge (const regionMerge &other) | |
virtual | ~regionMerge () |
virtual const char * | getTypeName () const |
bool | apply (const imatrix &srcmask, const dmatrix &simMat, imatrix &destmask) const |
regionMerge & | copy (const regionMerge &other) |
regionMerge & | operator= (const regionMerge &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
This functor uses a similarity matrix (see lti::similarityMatrix) and a threshold value given in the parameters to decide if two objects in a mask (also returned by lti::similarityMatrix or by lti::objectsFromMask) should be merged or not.
The result is a new mask with less objects than the original one.
See also Segmentation Overview.
lti::regionMerge::regionMerge | ( | ) |
default constructor
lti::regionMerge::regionMerge | ( | const regionMerge & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::regionMerge::~regionMerge | ( | ) | [virtual] |
destructor
bool lti::regionMerge::apply | ( | const imatrix & | srcmask, | |
const dmatrix & | simMat, | |||
imatrix & | destmask | |||
) | const |
operates on a copy of the given parameters.
srcmask | source mask. Each object must be represented by one label. | |
simMat | The similarity matrix. The size of the matrix must be at least equal the number of labels plus one. | |
destmask | resulting mask with merged objects. |
virtual functor* lti::regionMerge::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
regionMerge& lti::regionMerge::copy | ( | const regionMerge & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::regionMerge::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::functor.
virtual const char* lti::regionMerge::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("regionMerge")
Reimplemented from lti::functor.
regionMerge& lti::regionMerge::operator= | ( | const regionMerge & | other | ) |