Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

GuidedFilter

GuidedFilter[image,guide,r,ϵ]
filters image using the guide image guide over range-r neighborhoods with pixel-value regularizer ϵ.

GuidedFilter[image,r,ϵ]
filters image so as to reduce noise, using image as a guide.

Details and OptionsDetails and Options

  • GuidedFilter is a nonlinear local filter used for edge-preserving smoothing and structure transfer.
  • GuidedFilter works with arbitrary 2D and 3D images, as well as numeric data arrays of any rank.
  • GuidedFilter[image,r,ϵ] is equivalent to GuidedFilter[image,image,r,ϵ].
  • The images image and guide need to have the same dimensions, but may have a different number of channels.
  • The radius r controls the scale over which the filter operates. Features smaller than r will typically be averaged out, and features larger than r will remain.
  • Larger values of ϵ result in more smoothing and less guidance, while smaller values of ϵ result in less smoothing and more guidance.
  • At the edges of the image, smaller neighborhoods are used.
  • If image is a multichannel image, the guidance is always applied to each channel separately.
  • If guide is a multichannel image, operations involving guide are performed using vector processing.
  • At the edges of an image, GuidedFilter uses smaller neighborhoods.
  • GuidedFilter can take an option MaxIterations to specify the maximum number of iterations. By default, one iteration is performed.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Guided filtering of a grayscale image:

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

Guided filtering of a color image:

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

Guided filtering of a noisy 2D array:

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

After guided filtering, data is smoother:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2015
(10.2)