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


Parameters for the old algorithm | |
| enum | { Quantization = 0, Oversegmentation = 1, Undersegmentation = 2 } |
| int | option |
| std::vector< rectangle > | rects |
| int | maxTrial |
| int | trial2converge |
| double | classThreshold [3] |
| int | maxTrialRandomColor |
| int | minRegionSize |
| float | rectRadius [3] |
| float | autoRadius [3] |
| float | minVar |
Parameters for the new algorithm | |
| enum | eSpeedUpType { NoSpeedup, MediumSpeedup, HighSpeedup } |
| bool | multivariateNormalKernel |
| eSpeedUpType | speedup |
| double | sigmaS |
| double | sigmaR |
| double | maxNeighbourColorDistance |
| double | thresholdConverged |
| bool | classicAlgorithm |
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) |
|
|
Constants to specify degree of segmentation.
|
|
|
|
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
|
|
||||||||||||
|
write the parameters in the given ioHandler
Reimplemented from lti::segmentation::parameters. |
|
||||||||||||
|
write the parameters in the given ioHandler
Reimplemented from lti::segmentation::parameters. |
|
|
Multiplication factor for the colorRadius(option). Use in auto-segmentation mode (see rects). Increase value if too many colors are found, because of a low variance(image)
Each element of the array corresponds to one of the possible options (see Default value: {2.0, 3.0, 4.0} for Quantization, Over- and Undersegmentation respectively. |
|
|
Choose algorithm by this parameter.
The classic algorithm uses the following parameters:
The new algorithm considers the following parameters;
Default value: true (classic algorithm is used) |
|
|
How many pixel in promille of the image must have a colorClass.
Each element of the array corresponds to one of the possible options (see Default value: {2.5, 5.0, 10.0} for Quantization, Over- and Undersegmentation respectively. |
|
|
Regions having a color difference less than this parameter are joined together (by the method fuseRegions()). It should be smaller than sigmaR. Default value: 3 |
|
|
Maximal number of trials for choosing a valid representing color. Default: 10 |
|
|
Number of trials to pick up randomly a suitable color in the image(rect). Default: 25 |
|
|
Set the minSize (in Pixel) a region must have. default: 15 |
|
|
Set the lower limit of a multiplication factor v for the colorRadius. max( minVar , v ) The factor v = sqrt((var.l+var.u+var.v)/100) depends on the variance of the image in luv. For images with an homogeneous background and a small object, this value could be increased to get better results (for example with 1.0). Default value: 0.0 (no influence on factor v) |
|
|
Three types of speed-up techniques.
|
|
|
Option: 0 Quantization 1 Oversegmentation 2 Undersegmentation. You should use the given constants instead of the magic numbers... Default: Undersegmentation |
|
|
Multiplication factor for the colorRadius (variance in image). Only used in auto-segmentation mode (see rects).
Each element of the array corresponds to one of the possible options (see Default value: {8.0, 6.0, 4.0} for Quantization, Over- and Undersegmentation respectively. |
|
|
Number of rectangles, in which the segmenter looks for a color. If the first rectangle is (0,0,0,0) then an auto-segmentation mode is activated and colors are taken from the whole image. Otherwise the colors will be taken from the given image region. The number of rectangles specifies the maximal possible number of colors for the segmented/quantized image. If you give only one rectangle with (0,0,0,0) or an empty vector, then 50 elements will be assumed. Default value: vector with 1 element (0,0,0,0) |
|
|
The range radius of the mean shift sphere. (the radius in color space) Higher values result in less regions Default value: 5 |
|
|
The spatial radius of the mean shift sphere. (the radius in grid space) Higher values cause longer computation times, and smoother region boundaries. Default value: 5 |
|
|
Higher speedup level causes loss of acuracy. Default: MediumSpeedup |
|
|
If the magnitude of the mean-shift vector is under this threshold, it is considered as converged. Default value: 0.1 |
|
|
Number of trials for the representing color to converge. Default: 15 trials |