daffodil.filter.gaussian

A gaussian filter (aka gaussian blur) is a convolution (:d:mod:daffodil.filter.convolve) using a matrix created from a gaussian distribution.

Members

Functions

gaussianBlurred
auto gaussianBlurred(const Image!V image, real stDev = 1, real maxDev = 3)

Return a copy of `image` with a gaussian blur applied across axies `axis` with a given standard deviation and the number of standard deviations to stop at.

gaussianDistribution
real gaussianDistribution(real x, real stDev = 1, real mean = 0)

Evaluate the gaussian/normal distribution for a given `x`, `stDev` and `mean`.

gaussianMatrix
real[] gaussianMatrix(real stDev = 1, real maxDev = 3)

Create a 1D matrix of a discrete gaussian distribution with a given standard deviation and the number of standard deviations to stop generating at. The result is mirrored with guaranteed odd length.

Meta