latest version v1.9 - last update 10 Apr 2010 |
The parameters for the class regionGrowing. More...
#include <ltiRegionGrowing.h>
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 |
parameters & | copy (const parameters &other) |
virtual functor::parameters * | clone () 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 |
The parameters for the class regionGrowing.
Types for the region growing modi.
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 |
lti::regionGrowing::parameters::parameters | ( | ) |
Default constructor.
Reimplemented from lti::segmentation::parameters.
lti::regionGrowing::parameters::parameters | ( | const parameters & | other | ) |
Copy constructor.
other | the parameters object to be copied |
Reimplemented from lti::segmentation::parameters.
lti::regionGrowing::parameters::~parameters | ( | ) | [virtual] |
Destructor.
Reimplemented from lti::segmentation::parameters.
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.
other | the parameters object to be copied |
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.
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. |
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.
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. |
Reimplemented from lti::segmentation::parameters.
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