imguidedfilter
Guided filtering of images
Description
filters binary, grayscale, or RGB image B
= imguidedfilter(A
,G
)A
using
a filter guided by image G
. For more
information on guided filtering, see What is Guided Image Filtering?.
filters the image B
= imguidedfilter(___,Name,Value
)A
using name-value arguments
to control aspects of guided filtering.
Examples
Input Arguments
Output Arguments
Tips
The
DegreeOfSmoothing
argument specifies a soft threshold on variance for the given neighborhood. If a pixel's neighborhood has variance much lower than the threshold, it will see some amount of smoothing. If a pixel's neighborhood has variance much higher than the threshold it will have little to no smoothing.Input images
A
andG
can be of different classes. If eitherA
orG
is of class integer or logical, thenimguidedfilter
converts them to floating-point precision for internal computation.Input images
A
andG
can have different number of channels.If both
A
andG
are RGB images, thenimguidedfilter
filters each channel ofA
independently using the corresponding channel ofG
.If
A
is an RGB image andG
is a single-channel image, thenimguidedfilter
filters each channel ofA
independently using the same guidance image,G
.If
A
is a single-channel image andG
is an RGB image, thenimguidedfilter
filtersA
using the combined color statistics of all the three channels ofG
.
References
[1] Kaiming He, Jian Sun, Xiaoou Tang. Guided Image Filtering. IEEE® Transactions on Pattern Analysis and Machine Intelligence, Volume 35, Issue 6, pp. 1397-1409, June 2013.