gaussianΒΆ
-
module daffodil.filter.gaussian
A gaussian filter (aka gaussian blur) is a convolution (
daffodil.filter.convolve
) using a matrix created from a gaussian distribution.-
real gaussianDistribution(real x, real stDev = 1, real mean = 0)
Evaluate the gaussian/normal distribution for a given
x
,stDev
andmean
.
-
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.
The result can be used to convolve a image.
-
auto gaussianBlurred(string axis = "xy", V)(const Image!V image, real stDev = 1, real maxDev = 3)
Return a copy of
image
with a gaussian blur applied across axiesaxis
with a given standard deviation and the number of standard deviations to stop at.
-