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::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

enum lti::regionGrowing::parameters::eBackgroundType
 

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

enum lti::regionGrowing::parameters::eMode
 

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

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

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

float lti::regionGrowing::parameters::averageThreshold
 

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)

trgbPixel<float> lti::regionGrowing::parameters::averageThresholds
 

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

Each component value must be between 0.0 and 1.0

eBackgroundType lti::regionGrowing::parameters::backgroundType
 

Type (brightness) of the background.

The default value is "Dark".

float lti::regionGrowing::parameters::edgesThreshold
 

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)

int lti::regionGrowing::parameters::localStatisticsKernelSize
 

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

The default value is 5

double lti::regionGrowing::parameters::localStatisticsKernelVariance
 

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

eMode lti::regionGrowing::parameters::mode
 

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

trectangle<float> lti::regionGrowing::parameters::patchPosition
 

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.

int lti::regionGrowing::parameters::scaleFactor
 

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

vector< tpoint<float> > lti::regionGrowing::parameters::seedPoints
 

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) )

int lti::regionGrowing::parameters::smoothingKernelSize
 

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

float lti::regionGrowing::parameters::smoothingThreshold
 

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

bool lti::regionGrowing::parameters::useGaussKernel
 

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 Thu Nov 24 16:48:35 2005 for LTI-Lib by Doxygen 1.4.4