This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

MeanShiftFilter

MeanShiftFilter
replaces each pixel with the mean of the pixels in a range-r neighborhood and whose value is within a distance d.
MeanShiftFilter
applies mean-shift filtering to a data array.
  • MeanShiftFilter finds the mean of the pixels in blocks centered on each pixel, taking into account only those pixels whose value is within a Euclidean distance d from the center pixel.
  • MeanShiftFilter uses neighborhoods with vertical range and horizontal range .
  • MeanShiftFilter works with binary, grayscale, RGB, and arbitrary multichannel images.
  • With a setting MaxIterations->n, at most n iterations will be performed.
  • The possible range for the distance parameter d depends on the distance function used as well as the dimension of the color space.
Mean-shift of a list of integers:
Mean-shift of a list of integers:
In[1]:=
Click for copyable input
Out[1]=
 
In[1]:=
Click for copyable input
Out[1]=
Use mean-shift filtering to smooth an image:
Mean shift filtering of data:
Use mean-shift filtering as a preprocessing step for image segmentation:
Show how MeanShiftFilter iteratively shifts values until they converge:
New in 8