|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiCsPresegmentation.h>
Inheritance diagram for lti::csPresegmentation::parameters:


Public Types | |
| enum | eFilterType { Nothing = 0, Median = 1, KNearest = 2 } |
Public Member Functions | |
| parameters () | |
| parameters (const parameters &other) | |
| ~parameters () | |
| const char * | getTypeName () const |
| parameters & | copy (const parameters &other) |
| parameters & | operator= (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 | |
| int | smoothingKernelSize |
| kMColorQuantization::parameters | quantParameters |
| bool | useAlwaysNewPalette |
| int | borderSize |
| int | borderParts |
| bool | forceBorderToBackground |
| bool | labelObjects |
| float | backgroundTolerance |
| eFilterType | filterType |
Static Public Attributes | |
| static const int | All |
| static const int | Top |
| static const int | Bottom |
| static const int | Left |
| static const int | Right |
|
|
type to specify the smoothing filter to be used
|
|
|
default constructor
Reimplemented from lti::segmentation::parameters. |
|
|
copy constructor
|
|
|
destructor
Reimplemented from lti::segmentation::parameters. |
|
|
returns a pointer to a clone of the parameters
Reimplemented from lti::segmentation::parameters. |
|
|
copy the contents of a parameters object
|
|
|
returns name of this type
Reimplemented from lti::segmentation::parameters. |
|
|
copy the contents of a parameters object
|
|
||||||||||||
|
read the parameters from the given ioHandler
Reimplemented from lti::segmentation::parameters. |
|
||||||||||||
|
write the parameters in the given ioHandler
Reimplemented from lti::segmentation::parameters. |
|
|
constant to define all border elements
|
|
|
Tolerance for background colors.
Mean and Variance values will be computed for each RGB-component of all palette entries that are candidates to be background (at the beginning all entries in the palette are background candidates). Let t be this tolerance value. All entries in the palette, which are candidates to be background must satisfy for each color component c in RGB: Default value: 9; |
|
|
Decides which parts of the border should be considered for the statistics. You can use combinations of constants Top, Bottom, Left and Right or All to produce the wished results. Default value: lti::csPresegmentation::parameters::All Examples:
lti::csPresegmentation::parameters param; // to consider all but the bottom of the image: param.borderParts = lti::csPresegmentation::parameters::All & ~lti::csPresegmentation::parameters::Bottom; // to consider only the left and right borders param.borderParts = lti::csPresegmentation::parameters::Left | lti::csPresegmentation::parameters::Right; Bottom and Top parts have the whole width of the image. Left and Right parts have a height equal to the height of the image minus twice the borderSize:
|
|
|
Maximal size of the border of the image to be considered to contain almost background pixels. The real border will have the smallest number between this parameter and one half of the rows or columns of the image being used. Default value: 16 |
|
|
constant to define the bottom border element
|
|
|
Smoothing filter to be used. Default: Median |
|
|
If true, all color entries found withing the given border will be assumed to be background, undependently of their values. If false, only the most representative colors in the border will be assumed to be background. Default value: false; |
|
|
If true, the value in the segmentation mask for each objekt will correspond to the detected color palette entry in the color quantization. If false, the value in the mask for the non-background pixels will be 255 Default value: false; |
|
|
constant to define the left border element
|
|
|
Parameters for the k-means color quantization. Default values: quantParameters.numberOfColors=12 quantParameters.thresholdDeltaPalette = 0.5f quantParameters.maximalNumberOfIterations = 50 |
|
|
constant to define the right border element
|
|
|
Size of the median filter kernel or k-Nearest-Neighbor filter used to smooth the quantization mask. Default value: 5 |
|
|
constant to define the top border element
|
|
|
If false, the quantization algorithms uses the last palette as preinitialization, to speed up the segmentation of several images showing the same object from different perspectives. If true, the last quantization will be always ignored. Default value: false |