pub fn gaussian_kernel(
) -> Array<f32>
Creates a Gaussian Kernel.
This function creates a kernel of a specified size that contains a Gaussian distribution. This distribution is normalized to one. This is most commonly used when performing a Gaussian blur on an image. The function takes two sets of arguments, the size of the kernel (width and height in pixels) and the sigma parameters (for row and column) which effect the distribution of the weights in the y and x directions, respectively.
Changing sigma causes the weights in each direction to vary. Sigma is calculated internally as (0.25 * rows + 0.75) for rows and similarly for columns.
rowsis number of rows of kernel
colsis number of cols of kernel
sigma_ris standard deviation of rows
sigma_cis standard deviation of cols
An Array with gaussian kernel values