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 > KuwaharaFilter >

KuwaharaFilter

KuwaharaFilter
computes for each pixel p in image the variance of the values in the four squares that have p as a corner, and replaces p with the mean of the values of the square with least variance.
  • KuwaharaFilter is a non-linear local filter typically used for edge-preserving smoothing.
  • KuwaharaFilter works with binary, grayscale, and color images. For multi-channel images, KuwaharaFilter computes the sum of the variances in each channel.
Smoothing the image, while preserving the edges:
Smoothing the image, while preserving the edges:
In[1]:=
Click for copyable input
Out[1]=
Use Kuwahara filtering as a preprocessing step for image segmentation:
Remove salt-and-pepper noise:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF