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


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:
Click for copyable input
Use Kuwahara filtering as a preprocessing step for image segmentation:
Remove salt-and-pepper noise:
New in 8