The mean shift algorithm is a robust statistical method
which finds local maxima in any probability distribution.
It works with a search window that is positioned over a
section of the distribution. Within this search window the
maximum can be determined by a simple average computation.
Then the search window is moved to the position
of this maximum and the average computation is repeated
again. This procedure is repeated until the mean shift algorithm
finds a local maximum and converges.