Package org.joml.sampling
Class Convolution
java.lang.Object
org.joml.sampling.Convolution
Generates various convolution kernels.
- Author:
- Kai Burjack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgaussianKernel(int rows, int cols, float sigma, float[] dest) Generate a Gaussian convolution kernel with the given number of rows and columns, and store the factors in row-major order indest.static voidgaussianKernel(int rows, int cols, float sigma, FloatBuffer dest) Generate a Gaussian convolution kernel with the given number of rows and columns, and store the factors in row-major order indest.
-
Constructor Details
-
Convolution
public Convolution()
-
-
Method Details
-
gaussianKernel
Generate a Gaussian convolution kernel with the given number of rows and columns, and store the factors in row-major order indest.- Parameters:
rows- the number of rows (must be an odd number)cols- the number of columns (must be an odd number)sigma- the standard deviation of the filter kernel valuesdest- will hold the kernel factors in row-major order
-
gaussianKernel
public static void gaussianKernel(int rows, int cols, float sigma, float[] dest) Generate a Gaussian convolution kernel with the given number of rows and columns, and store the factors in row-major order indest.- Parameters:
rows- the number of rows (must be an odd number)cols- the number of columns (must be an odd number)sigma- the standard deviation of the filter kernel valuesdest- will hold the kernel factors in row-major order
-