imgaussfilt
2-D Gaussian filtering of images
Description
uses name-value arguments to control aspects of the filtering.B
= imgaussfilt(___,Name=Value
)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
If image
A
contains elements with valuesInf
orNaN
, then the behavior ofimgaussfilt
for frequency domain filtering is undefined. This can happen if you set theFilterDomain
name-value argument to"frequency"
or if you set it to"auto"
andimgaussfilt
uses frequency domain filtering. To restrict the propagation ofInf
s andNaN
s in the output in a manner similar toimfilter
, consider setting theFilterDomain
name-value argument to"spatial"
.If you set the
FilterDomain
name-value argument to"auto"
, thenimgaussfilt
uses an internal heuristic to determine whether spatial or frequency domain filtering is faster. This heuristic is machine dependent and may vary for different configurations. For optimal performance, try both options,"spatial"
and"frequency"
, to determine the best filtering domain for your image and kernel size.If you do not specify the
Padding
name-value argument, thenimgaussfilt
uses"replicate"
padding by default, which is different from the default used byimfilter
.