Filters the image img with a 2d gaussian kernel and returns a smoothed image J.
Parameters:
The image to be filtered. Must be an image type, cannot be logical or non-numeric.
The standard deviation of the gausian filter. Can be a scalar or a two element vector If sigma is a vector, the function will use a square gaussian kernel. By default sigma is 0.5.
Additional options as name-value pairs:
Determines how the image is padded. Value can be one of the following:
Pads the image with the scalar S.
Pads the image with the border pixel value.
Pads the image by mirroring it at the image border.
Pads the image with pixel values from the opposite image border, essentially treating the image as periodic.
Determines the domain in which to perform the filtering. Values can be one of the following:
The function determines the filter domain based on internal heuristics.
Perform convolution in the frequency domain.
Perform convolution in the spatial domain.
See also: imfilter, imboxfilt.
Package: image