gaussian_filter¶
-
menpo.feature.
gaussian_filter
(image, *args, **kwargs)[source]¶ Calculates the convolution of the input image with a multidimensional Gaussian filter.
Parameters: - pixels (
Image
or subclass or(X, Y, ..., Z, C)
ndarray) – Either the image object itself or an array with the pixels. The last dimension is interpreted as channels. This means an N-dimensional image is represented by an N+1 dimensional array. - sigma (float or list of float) – The standard deviation for Gaussian kernel. The standard deviations of the Gaussian filter are given for each axis as a list, or as a single float, in which case it is equal for all axes.
Returns: output_image (
Image
or subclass or(X, Y, ..., Z, C)
ndarray) – The filtered image has the same type and size as the inputpixels
.- pixels (