KuwaharaFilter

KuwaharaFilter[image, r]
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.

DetailsDetails

  • 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.
  • At the edges of an image, KuwaharaFilter uses smaller neighborhoods.
  • KuwaharaFilter works with 3D as well as 2D images, and also with data arrays of any rank.
  • KuwaharaFilter[image, {rrow, rcol}] uses range in height, and in width.
  • KuwaharaFilter[image, {rslice, rrow, rcol}] uses range in height, in depth, and in width.
New in 8 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »