Package org.joml.sampling
Class Convolution
- java.lang.Object
-
- org.joml.sampling.Convolution
-
public class Convolution extends java.lang.ObjectGenerates various convolution kernels.- Author:
- Kai Burjack
-
-
Constructor Summary
Constructors Constructor Description Convolution()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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, java.nio.FloatBuffer dest)Generate a Gaussian convolution kernel with the given number of rows and columns, and store the factors in row-major order indest.
-
-
-
Method Detail
-
gaussianKernel
public static void gaussianKernel(int rows, int cols, float sigma, java.nio.FloatBuffer 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
-
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
-
-