KuwaharaFilter

KuwaharaFilter[data,r]

computes for each element p in data the variance of the values in the four (r+1)×(r+1) squares that have p as a corner, and replaces p with the mean of the values of the square with least variance.

Details

  • KuwaharaFilter is a non-linear local filter typically used for edge-preserving smoothing.
  • The data can be any of the following:
  • listarbitrary-rank numerical array
    tseriestemporal data such as TimeSeries, TemporalData,
    imagearbitrary Image or Image3D object
    audioan Audio object
  • For multi-channel data, KuwaharaFilter computes the sum of the variances in each channel.
  • At the edges of data, KuwaharaFilter uses smaller neighborhoods.
  • KuwaharaFilter[data,{r1,r2,}] uses squares (ri+1)×(ri+1) in dimension i of data.
  • KuwaharaFilter assumes the index coordinate system for lists and images.

Examples

open allclose all

Basic Examples  (3)

Kuwahara filtering of a list:

In[37]:=
Click for copyable input
Out[39]=

Kuwahara filtering of an image:

In[1]:=
Click for copyable input
Out[1]=

Kuwahara filter applied to a 3D image:

In[1]:=
Click for copyable input
Out[1]=

Scope  (5)

Applications  (3)

Neat Examples  (1)

See Also

MeanFilter  ImageFilter

Introduced in 2010
(8.0)
| Updated in 2012
(9.0)