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 all close all

Basic Examples  (2)

Kuwahara filtering of an image:

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

Kuwahara filtering of a signal:

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

Scope  (7)

Applications  (3)

Properties & Relations  (2)

Neat Examples  (1)

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