copapy.filters.gaussian_filter#
- copapy.filters.gaussian_filter(a, sigma, truncate=4.0)#
Gaussian filter for 1D, 2D and 3D inputs. The filter is separable: one 1D convolution is computed for each axis. The input is extended with zeros beyond its edges (like the mode ‘constant’ of scipy.ndimage.gaussian_filter).
- Overloads:
- Parameters:
a (
Any) – Input vector, tensor, array or nested sequencessigma (
float|Sequence[float]) – Standard deviation of the Gaussian in elements, a single number for all axes or one number per axis. An axis with sigma 0 is not filtered.truncate (
float) – The kernel is truncated at this many standard deviations.
- Returns:
Filtered values with the shape and type of the input.