LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::regionMerge Class Reference

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>

Inheritance diagram for lti::regionMerge:
Inheritance graph
[legend]
Collaboration diagram for lti::regionMerge:
Collaboration graph
[legend]

List of all members.

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
regionMergecopy (const regionMerge &other)
regionMergeoperator= (const regionMerge &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

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.


Constructor & Destructor Documentation

lti::regionMerge::regionMerge (  ) 

default constructor

lti::regionMerge::regionMerge ( const regionMerge other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::regionMerge::~regionMerge (  )  [virtual]

destructor


Member Function Documentation

bool lti::regionMerge::apply ( const imatrix srcmask,
const dmatrix simMat,
imatrix destmask 
) const

operates on a copy of the given parameters.

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.
Returns:
true if apply successful or false otherwise.
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.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

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  ) 

alias for copy member

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::functor.


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:27:46 2010 for LTI-Lib by Doxygen 1.6.1