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


Public Member Functions | |
| meanShiftSegmentation () | |
| meanShiftSegmentation (const parameters &par) | |
| meanShiftSegmentation (const meanShiftSegmentation &other) | |
| virtual | ~meanShiftSegmentation () |
| virtual const char * | getTypeName () const |
| bool | apply (const lti::image &src, lti::image &dest) |
| bool | apply (const lti::image &src, lti::imatrix &dest) |
| bool | apply (const lti::image &src, lti::imatrix &labels, lti::palette &colorMap) |
| bool | apply (const lti::channel8 &chnl1, const lti::channel8 &chnl2, const lti::channel8 &chnl3, lti::imatrix &dest) |
| bool | apply (const lti::image &src, lti::image &destFiltered, lti::image &destSegmented, lti::imatrix &destLabels, lti::palette &destColorMap) |
| bool | filter (const lti::image &src, lti::image &dest) |
| bool | filter (lti::image &srcdest) |
| meanShiftSegmentation & | copy (const meanShiftSegmentation &other) |
| virtual functor * | clone () const |
| const parameters & | getParameters () const |
Classes | |
| struct | luvPixel |
| like rgbPixel for RGB-ColorSpace, is luvPixel for LUV-ColorSpace More... | |
| class | parameters |
| the parameters for the class meanShiftSegmentation More... | |
It is described in
D. Comaniciu, P. Meer, "Mean Shift: A Robust Approach toward Feature Space Analysis" appeared in IEEE Trans. Pattern Analysis Machine Intell. Vol. 24, No. 5, 603-619, 2002 (original link here )
http://www.caip.rutgers.edu/~comanici/Papers/MsRobustApproach.pdf
The code here is based on the code of the original authors, modified extensively for the use with the LTI-Lib. It has changed a lot since then to provide more functionality and configuration options.
There are two implementations available:
The classic implementation is selected setting the parameter parameters::classicAlgorithm to true. It is based on an old code example published by Comaniciu and colleagues a few years ago. This implementation was not as good as the newer version, but was already available in the LTI-Lib. Since several applications were adapted to use that mean-shift version, the default behaviour of this functors has not been changed.
The new implementation is an adaption of Comaniciu and Meer's EDISON code (http://www.caip.rutgers.edu/riul/research/robust.html). It can be selected setting parameters::classicAlgorithm to false. Decisive for the result of the new implementation is the choice of the parameters parameters::sigmaR, parameters::sigmaS, parameters::maxNeighbourColorDistance, and the parameters::speedup.
|
|
default constructor
|
|
|
default constructor
|
|
|
copy constructor
|
|
|
destructor
|
|
||||||||||||||||||||||||
|
Apply the mean shift segmentation algorithm to the given image. This image will be internally transformed into the Luv color space, as proposed by Comaniciu et.al. in their original paper.
|
|
||||||||||||||||||||
|
Apply the mean shift segmentation algorithm to a color image, which has been already split into three channels. The algorithm will work with these channels without converting them into the Luv color space. This allows the use of the mean shift segmentation in other color spaces than Luv.
|
|
||||||||||||||||
|
Apply the mean shift segmentation algorithm to the given image. This image will be internally transformed into the Luv color space, as proposed by Comaniciu et.al. in their original paper.
|
|
||||||||||||
|
Apply the mean shift segmentation algorithm to the given image. This image will be internally transformed into the Luv color space, as proposed by Comaniciu et.al. in their original paper.
|
|
||||||||||||
|
Apply the mean shift segmentation algorithm to the given image. This image will be internally transformed into the Luv color space, as proposed by Comaniciu et.al. in their original paper.
|
|
|
returns a pointer to a clone of this functor.
Reimplemented from lti::segmentation. |
|
|
copy data of "other" functor.
|
|
|
filter the image with meanshift algorithm
|
|
||||||||||||
|
filter the image with meanshift algorithm
|
|
|
returns used parameters
Reimplemented from lti::functor. |
|
|
returns the name of this type ("meanShiftSegmentation")
Reimplemented from lti::segmentation. |