Catalano.Imaging.Tools
Class Kernel
- java.lang.Object
-
- Catalano.Imaging.Tools.Kernel
-
public class Kernel extends java.lang.ObjectKernel operations.
-
-
Constructor Summary
Constructors Constructor and Description Kernel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static double[][]Decompose(double[][] kernel)Decompose the kernel into vectors.static booleanisNormalized(double[][] kernel)Check if the kernel is normalized.static booleanisSeparable(int[][] kernel)Check if the kernel is separable (Separable convolution).static double[][]Normalize(double[][] kernel)Normalize kernel.static double[][]toDouble(int[][] kernel)Convert kernel to normalized double values.static int[]toInt(double[] kernel)static int[][]toInt(double[][] kernel)Convert kernel to normalized integer values.
-
-
-
Method Detail
-
Decompose
public static double[][] Decompose(double[][] kernel)
Decompose the kernel into vectors.- Parameters:
kernel- Kernel.- Returns:
- Vectors.
-
Normalize
public static double[][] Normalize(double[][] kernel)
Normalize kernel.- Parameters:
kernel- Kernel.- Returns:
- Normalized kernel.
-
isNormalized
public static boolean isNormalized(double[][] kernel)
Check if the kernel is normalized. If the sum of elements its approximated equals 1.- Parameters:
kernel- Kernel.- Returns:
- True if is normalized, otherwise false.
-
isSeparable
public static boolean isSeparable(int[][] kernel)
Check if the kernel is separable (Separable convolution).- Parameters:
kernel- Kernel.- Returns:
- True if the kernel can be decomposed, otherwise false.
-
toDouble
public static double[][] toDouble(int[][] kernel)
Convert kernel to normalized double values.- Parameters:
kernel- Kernel.- Returns:
- Kernel.
-
toInt
public static int[][] toInt(double[][] kernel)
Convert kernel to normalized integer values.- Parameters:
kernel- Kernel.- Returns:
- Kernel.
-
toInt
public static int[] toInt(double[] kernel)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG