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

lti::skeleton Class Reference
[Morphology operators]

Homotopy preserving Skeleton. More...

#include <ltiSkeleton.h>

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

List of all members.

Classes

class  parameters
 the parameters for the class skeleton More...

Public Member Functions

 skeleton ()
 skeleton (const skeleton &other)
virtual ~skeleton ()
virtual const char * getTypeName () const
channelapply (channel &srcdest) const
channel8apply (channel8 &srcdest) const
channelapply (const channel &src, channel &dest) const
channel8apply (const channel8 &src, channel8 &dest) const
skeletoncopy (const skeleton &other)
virtual functorclone () const
const parametersgetParameters () const

Protected Member Functions

channel8img_or (const channel8 &src1, channel8 &srcdest) const
channel8difference (const channel8 &img, const channel8 &stamp, channel8 &dest) const
channel8calc_jpoints (const channel8 &src, const channel8 &match, channel8 &dest) const
channel8visualize (channel8 &srcdest, const int &val) const

Detailed Description

Homotopy preserving Skeleton.

This class implements the algorithm of Ji and Piper (IEEE Transactions on Pattern Analysis and Maschine Intelligence, vol. 14, no. 6, june 1992).

The generated skeletons will keep the original homotopy of the input channel.

The input data must be segmented, with values 0 (background) and not 0 (object).


Constructor & Destructor Documentation

lti::skeleton::skeleton (  ) 

default constructor

lti::skeleton::skeleton ( const skeleton other  ) 

copy constructor

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

destructor


Member Function Documentation

channel8& lti::skeleton::apply ( const channel8 src,
channel8 dest 
) const

operates on a copy of the given parameters.

Parameters:
src channel8 with the source data.
dest channel8 where the result will be left.
Returns:
a reference to the dest.
channel& lti::skeleton::apply ( const channel src,
channel dest 
) const

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest channel where the result will be left.
Returns:
a reference to the dest.
channel8& lti::skeleton::apply ( channel8 srcdest  )  const

operates on the given parameter.

Parameters:
srcdest channel8 with the source data. The result will be left here too.
Returns:
a reference to the srcdest.
channel& lti::skeleton::apply ( channel srcdest  )  const

operates on the given parameter.

Parameters:
srcdest channel with the source data. The result will be left here too.
Returns:
a reference to the srcdest.
channel8& lti::skeleton::calc_jpoints ( const channel8 src,
const channel8 match,
channel8 dest 
) const [protected]

calculate the jpoints for every pixel in src jpoints are needed to preserve homotopy

virtual functor* lti::skeleton::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Implements lti::functor.

skeleton& lti::skeleton::copy ( const skeleton other  ) 

copy data of "other" functor.

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

Reimplemented from lti::functor.

channel8& lti::skeleton::difference ( const channel8 img,
const channel8 stamp,
channel8 dest 
) const [protected]

returns img \ stamp.

(img with all pixels of stamp left out)

const parameters& lti::skeleton::getParameters (  )  const

returns used parameters

Reimplemented from lti::transform.

virtual const char* lti::skeleton::getTypeName (  )  const [virtual]

returns the name of this type ("skeleton")

Reimplemented from lti::transform.

channel8& lti::skeleton::img_or ( const channel8 src1,
channel8 srcdest 
) const [protected]

provides logical or of two channel8s

channel8& lti::skeleton::visualize ( channel8 srcdest,
const int &  val 
) const [protected]

sets all non-zero values of a channel to int val


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

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