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(Image!V image, real stDev, real maxDev)

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, real mean)

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

gaussianMatrix
real[] gaussianMatrix(real stDev, real maxDev)

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