Predefined convolution kernels.
These approximations of the Gaussian kernels below are computed as a repeated convolution of the
`[1 1]` box filter. They're identical to every other row of Pascal's triangle of the binomial coefficients.
The kernel values have been normalized to sum to 1.0.
Members (3)
get · iOS 16.0+
gaussian1Dx3
TypeScript
static get gaussian1Dx3(): Array<number>
Swift declaration
static let gaussian1Dx3: [Float]
An array of that represents a three element 1D Gaussian kernel.
Use this constant with the `separableConvolve` functions to perform fast Gaussian blur.
get · iOS 16.0+
gaussian1Dx5
TypeScript
static get gaussian1Dx5(): Array<number>
Swift declaration
static let gaussian1Dx5: [Float]
An array that represents a five element 1D Gaussian kernel.
Use this constant with the `separableConvolve` functions to perform fast Gaussian blur.
get · iOS 16.0+
gaussian1Dx7
TypeScript
static get gaussian1Dx7(): Array<number>
Swift declaration
static let gaussian1Dx7: [Float]
An array that represents a seven element 1D Gaussian kernel.
Use this constant with the `separableConvolve` functions to perform fast Gaussian blur.