Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Image Filtering & Neighborhood Processing > MeanShiftFilter >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF