The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

imgaussfilt: J = imgaussfilt(img)
imgaussfilt: J = imgaussfilt(…, sigma)
imgaussfilt: J = imgaussfilt(…, name, value, …)

Filters the image img with a 2d gaussian kernel and returns a smoothed image J.

Parameters:

img

The image to be filtered. Must be an image type, cannot be logical or non-numeric.

sigma

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.

name, value

Additional options as name-value pairs:

padding

Determines how the image is padded. Value can be one of the following:

S

Pads the image with the scalar S.

"replicate" (default)

Pads the image with the border pixel value.

"symmetric"

Pads the image by mirroring it at the image border.

"circular"

Pads the image with pixel values from the opposite image border, essentially treating the image as periodic.

Filter Domain

Determines the domain in which to perform the filtering. Values can be one of the following:

"auto"

The function determines the filter domain based on internal heuristics.

"frequency"

Perform convolution in the frequency domain.

"spatial"

Perform convolution in the spatial domain.

See also: imfilter, imboxfilt.

Package: image