gaussian_filter¶
-
menpo.feature.gaussian_filter(pixels, sigma)[source]¶ Calculates the convolution of the input image with a multidimensional Gaussian filter.
- Parameters
pixels (
Imageor subclass or(C, X, Y, ..., Z)ndarray) – Either the image object itself or an array with the pixels. The first 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 (
Imageor subclass or(X, Y, ..., Z, C)ndarray) – The filtered image has the same type and size as the inputpixels.