LTI-Lib latest version v1.9 - last update 24 Nov 2005
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

lti::thresholdSegmentation Class Reference

Threshold segmentation of a single channel (monochrom) image or a contour. More...

#include <ltiThresholdSegmentation.h>

Inheritance diagram for lti::thresholdSegmentation:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 thresholdSegmentation ()
 thresholdSegmentation (const thresholdSegmentation &other)
virtual ~thresholdSegmentation ()
virtual const char * getTypeName () const
channel8apply (channel8 &srcdest) const
channel8apply (const channel8 &src, channel8 &dest) const
channelapply (channel &src) const
channel8apply (const channel &src, channel8 &dest) const
channelapply (const channel &src, channel &dest) const
areaPointsapply (const channel8 &src, areaPoints &dest) const
areaPointsapply (const channel &src, areaPoints &dest) const
areaPointsapply (const channel8 &src, const areaPoints &comp, areaPoints &dest) const
areaPointsapply (const channel &src, const areaPoints &comp, areaPoints &dest) const
thresholdSegmentationcopy (const thresholdSegmentation &other)
virtual functorclone () const
virtual bool updateParameters ()
const parametersgetParameters () const

Protected Attributes

ubyte lut [256]
ubyte mask [256]

Classes

class  parameters
 the parameters for the class thresholdSegmentation More...

Detailed Description

Threshold segmentation of a single channel (monochrom) image or a contour.

An upper and a lower threshold are used in order to define the pixel-value-region where the thresholding should operate.


Constructor & Destructor Documentation

lti::thresholdSegmentation::thresholdSegmentation  ) 
 

default constructor

lti::thresholdSegmentation::thresholdSegmentation const thresholdSegmentation other  ) 
 

copy constructor

Parameters:
other the object to be copied

virtual lti::thresholdSegmentation::~thresholdSegmentation  )  [virtual]
 

destructor


Member Function Documentation

areaPoints& lti::thresholdSegmentation::apply const channel src,
const areaPoints comp,
areaPoints dest
const
 

segmentate the src channel, and consider only the area points given by the "comp" point list .

Parameters:
src channel with the source data.
comp the list of points that should be segmented
dest point list where the result will be left.
Returns:
a reference to the dest.

areaPoints& lti::thresholdSegmentation::apply const channel8 src,
const areaPoints comp,
areaPoints dest
const
 

segmentate the src channel, and consider only the area points given by the "comp" list.

Parameters:
src channel8 with the source data.
comp the list of points that should be segmented
dest point list where the result will be left.
Returns:
a reference to the dest.

areaPoints& lti::thresholdSegmentation::apply const channel src,
areaPoints dest
const
 

segmentate the channel src, and generate an area-points-list on for the given dest-contour

Parameters:
src channel with the source data.
dest the area point list where the result will be left. Only the area points will be generated. If you need another contour representation you can use the castFrom methods of the other point list types (see lti::borderPoints, lti::ioPoints)
Returns:
a reference to the dest. contour is of IO type

areaPoints& lti::thresholdSegmentation::apply const channel8 src,
areaPoints dest
const
 

segmentate the channel src, and generate an area-points-list on for the given dest-contour

Parameters:
src channel8 with the source data.
dest the area point-list where the result will be left.
Returns:
a reference to the dest. contour is of IO type

channel& lti::thresholdSegmentation::apply const channel src,
channel dest
const
 

segmentate the channel src, and leave the result in dest

Parameters:
src channel with the source data.
dest channel where the resulting mask will be left.
Returns:
a reference to the dest.

channel8& lti::thresholdSegmentation::apply const channel src,
channel8 dest
const
 

generates a mask for the channel src.

If the parameters specified "Original" for the output values, the values between 0.0 and 1.0 will be linearly mapped between 0 and 255.

Parameters:
src channel with the source data.
dest channel where the resulting mask will be left.
Returns:
a reference to the dest.

channel& lti::thresholdSegmentation::apply channel src  )  const
 

segmentates a channel on place

Parameters:
src channel with the source data. The result will be left here as well.
Returns:
a reference to the dest.

channel8& lti::thresholdSegmentation::apply const channel8 src,
channel8 dest
const
 

segmentate the src channel and leave the result on dest

Parameters:
src channel8 with the source data.
dest channel8 where the result will be left.
Returns:
a reference to the dest.

channel8& lti::thresholdSegmentation::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.

virtual functor* lti::thresholdSegmentation::clone  )  const [virtual]
 

returns a pointer to a clone of the functor.

Reimplemented from lti::segmentation.

thresholdSegmentation& lti::thresholdSegmentation::copy const thresholdSegmentation other  ) 
 

copy data of "other" functor.

const parameters& lti::thresholdSegmentation::getParameters  )  const
 

returns used parameters

Reimplemented from lti::functor.

virtual const char* lti::thresholdSegmentation::getTypeName  )  const [virtual]
 

returns the name of this type ("thresholdSegmentation")

Reimplemented from lti::segmentation.

virtual bool lti::thresholdSegmentation::updateParameters  )  [virtual]
 

sets the functor's parameters.

This member makes a copy of theParam: the functor will keep its own copy of the parameters!

Reimplemented from lti::functor.


Member Data Documentation

ubyte lti::thresholdSegmentation::lut[256] [protected]
 

This look up table will be used to accelerate the segmentation of channel8 data.

It contains the value to be assigned to the destination channel It will be generated within the member setParameters

ubyte lti::thresholdSegmentation::mask[256] [protected]
 

This look up table will be used to accelerate the segmentation of channel8 data.

It contains 0 if the value must be considered as background or 1 otherwise. It will be generated within the member setParameters


The documentation for this class was generated from the following file:
Generated on Thu Nov 24 16:51:33 2005 for LTI-Lib by Doxygen 1.4.4