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

lti::regionGrowing::parameters Class Reference

The parameters for the class regionGrowing. More...

#include <ltiRegionGrowing.h>

Inheritance diagram for lti::regionGrowing::parameters:
Inheritance graph
[legend]
Collaboration diagram for lti::regionGrowing::parameters:
Collaboration graph
[legend]

List of all members.

Public Types

enum  eMode { UseGivenThresholds, GetThresholdsRelative, GetThresholdsAbsolute }
enum  eBackgroundType { Dark, Medium, Light }

Public Member Functions

 parameters ()
 parameters (const parameters &other)
 ~parameters ()
const char * getTypeName () const
parameterscopy (const parameters &other)
virtual functor::parametersclone () const
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)

Public Attributes

eBackgroundType backgroundType
bool useGaussKernel
int localStatisticsKernelSize
double localStatisticsKernelVariance
int smoothingKernelSize
float smoothingThreshold
trectangle< float > patchPosition
eMode mode
int scaleFactor
float averageThreshold
trgbPixel< float > averageThresholds
float edgesThreshold
vector< tpoint< float > > seedPoints

Detailed Description

The parameters for the class regionGrowing.


Member Enumeration Documentation

Types of "lightness" for the background.

Enumerator:
Dark 

The background has only dark colors

Medium 

The background has colors with medium intensity

Light 

The background is white

Types for the region growing modi.

Enumerator:
UseGivenThresholds 

Use the thresholds specified in the parameters

GetThresholdsRelative 

Use the relative patchPosition to obtain the threshold values

GetThresholdsAbsolute 

Use the absolute patchPosition to obtain the threshold values


Constructor & Destructor Documentation

lti::regionGrowing::parameters::parameters (  ) 

Default constructor.

Reimplemented from lti::segmentation::parameters.

lti::regionGrowing::parameters::parameters ( const parameters other  ) 

Copy constructor.

Parameters:
other the parameters object to be copied

Reimplemented from lti::segmentation::parameters.

lti::regionGrowing::parameters::~parameters (  )  [virtual]

Destructor.

Reimplemented from lti::segmentation::parameters.


Member Function Documentation

virtual functor::parameters* lti::regionGrowing::parameters::clone (  )  const [virtual]

Returns a pointer to a clone of the parameters.

Reimplemented from lti::segmentation::parameters.

parameters& lti::regionGrowing::parameters::copy ( const parameters other  ) 

Copy the contents of a parameters object.

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

Reimplemented from lti::segmentation::parameters.

const char* lti::regionGrowing::parameters::getTypeName (  )  const [virtual]

Returns name of this type.

Reimplemented from lti::segmentation::parameters.

virtual bool lti::regionGrowing::parameters::read ( ioHandler handler,
const bool  complete = true 
) [virtual]

Write the parameters in the given ioHandler.

Parameters:
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.
Returns:
true if write was successful

Reimplemented from lti::segmentation::parameters.

virtual bool lti::regionGrowing::parameters::write ( ioHandler handler,
const bool  complete = true 
) const [virtual]

Write the parameters in the given ioHandler.

Parameters:
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.
Returns:
true if write was successful

Reimplemented from lti::segmentation::parameters.


Member Data Documentation

Used by the UseGivenThresholds-mode for the segmentation of a channel or channel8.

This value MUST be between 0.0 and 1.0 (The channel8 values will be divided by 255 before the comparitions)

Used by the UseGivenThresholds-mode for the segmentation of a color image.

Each component value must be between 0.0 and 1.0

Type (brightness) of the background.

The default value is "Dark".

Used by the UseGivenThresholds-mode for the segmentation of a channel or channel8.

This value must be between 0.0 and 1.0. (The channel8 values will be divided by 255 before the comparitions)

Size of the filter kernel used to specify a local region.

The default value is 5

Variance of the filter kernel used to specify a local region (used only if useGaussKernel is true).

The default value is "-1", which meaning is described in gaussKernel

Specify how to obtain the threshold values to considered a pixel similar to the seed or not.

Specify the position in the image or channel, where the values for the "background" can be taken.

If the mode is GetThresholdsRelative, the values of the coordinates must be between 0.0 and 1.0. The absolute coordinates will be calculated multiplying this values with the size of the image to be segmented.

If the mode is GetThresholdsAbsolute, this parameters should contain the absolute coordinates for the background patch.

The scale factor allows a faster calculation for the segmentation mask, but with a lower boundary detection accuracy.

A list with the relative positions for the starting seed points can be specified here.

The valid values for each coordinate are between 0.0f and 1.0f. The default values are the four corners (i.e. (0,0),(0,1),(1,0),(1,1) )

Size of a gaussian kernel used to low-pass-filter the final segmentated mask.

Smoothing threshold.

After the first segmentation, all pixels will be assigned to the background or the object. The smoothing filter will generate at the borders of the objects values between 0 (background) and 1 (object). This value will determine which values will be considered as object.

The default value is 0.6

If this variable is "true", the local region will be specified by a gassian filter with the given (local region) size and variance.

If "false", a rectangular filter will be used. The default value is "false"


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