2-D Gaussian filtering of images
If image A contains
Infs or
NaNs, then the behavior of
imgaussfilt for frequency
domain filtering is undefined. This can happen if
you set the
'
parameter to FilterDomain''frequency' or if
you set it to 'auto' and
imgaussfilt uses frequency
domain filtering. To restrict the propagation of
Infs and
NaNs in the output in a manner
similar to imfilter, consider setting the
'FilterDomain' parameter to
'spatial'.
If you set the
'FilterDomain' parameter to
'auto', then
imgaussfilt 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
'
parameter, then Padding'imgaussfilt
uses 'replicate' padding by
default, which is different from the default used
by imfilter.