Catalano.Imaging.Tools
Class ImageUtils
- java.lang.Object
-
- Catalano.Imaging.Tools.ImageUtils
-
public class ImageUtils extends java.lang.ObjectCommon operations in the image.
-
-
Constructor Summary
Constructors Constructor and Description ImageUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static double[][][]Convolution(double[][][] image, double[][] kernel)Convolution operator.static double[][][]Convolution(double[][][] image, double[][] kernel, boolean replicate)Convolution operator.static double[][][]Convolution(double[][][] image, double[] row, double[] col)Separable convolution operator.static double[][][]Convolution(double[][][] image, double[] row, double[] col, boolean replicate)Separable convolution operator.static double[][]Convolution(double[][] image, double[][] kernel)Convolution operator.static double[][]Convolution(double[][] image, double[][] kernel, boolean replicate)Convolution operator.static double[][]Convolution(double[][] image, double[] row, double[] col)Separable convolution operator.static double[][]Convolution(double[][] image, double[] row, double[] col, boolean replicate)Separable convolution operator.static voidNormalize(double[][] image)Normalize the image within the range [0..255].static voidNormalize(double[][][] image)Normalize the image within the range [0..255].static voidNormalize(double[][][] image, double min, double max)Normalize the image.static voidNormalize(double[][] image, double min, double max)Normalize the image.static voidNormalize(int[][] image)Normalize the image within the range [0..255].static voidNormalize(int[][] image, int min, int max)Normalize the image.
-
-
-
Method Detail
-
Convolution
public static double[][] Convolution(double[][] image, double[][] kernel)Convolution operator.- Parameters:
image- Image.kernel- Kernel.- Returns:
- Result of the convolution.
-
Convolution
public static double[][] Convolution(double[][] image, double[][] kernel, boolean replicate)Convolution operator.- Parameters:
image- Image.kernel- Kernel.replicate- Replicate border.- Returns:
- Result of the convolution.
-
Convolution
public static double[][][] Convolution(double[][][] image, double[][] kernel)Convolution operator.- Parameters:
image- Image.kernel- Kernel.- Returns:
- Result of the convolution.
-
Convolution
public static double[][][] Convolution(double[][][] image, double[][] kernel, boolean replicate)Convolution operator.- Parameters:
image- Image.kernel- Kernel.replicate- Replicate border.- Returns:
- Result of the convolution.
-
Convolution
public static double[][] Convolution(double[][] image, double[] row, double[] col)Separable convolution operator.- Parameters:
image- Image.row- Row vector.col- Column vector.- Returns:
- Result of the convolution.
-
Convolution
public static double[][] Convolution(double[][] image, double[] row, double[] col, boolean replicate)Separable convolution operator.- Parameters:
image- Image.row- Row vector.col- Column vector.replicate- Replicate the border.- Returns:
- Result of the convolution.
-
Convolution
public static double[][][] Convolution(double[][][] image, double[] row, double[] col)Separable convolution operator.- Parameters:
image- Image.row- Row vector.col- Column vector.- Returns:
- Result of the convolution.
-
Convolution
public static double[][][] Convolution(double[][][] image, double[] row, double[] col, boolean replicate)Separable convolution operator.- Parameters:
image- Image.row- Row vector.col- Column vector.replicate- Replicate the border.- Returns:
- Result of the convolution.
-
Normalize
public static void Normalize(int[][] image)
Normalize the image within the range [0..255].- Parameters:
image- Image.
-
Normalize
public static void Normalize(int[][] image, int min, int max)Normalize the image.- Parameters:
image- Image.min- Minimum value.max- Maximum value.
-
Normalize
public static void Normalize(double[][] image)
Normalize the image within the range [0..255].- Parameters:
image- Image.
-
Normalize
public static void Normalize(double[][] image, double min, double max)Normalize the image.- Parameters:
image- Image.min- Minimum value.max- Maximum value.
-
Normalize
public static void Normalize(double[][][] image)
Normalize the image within the range [0..255].- Parameters:
image- Image.
-
Normalize
public static void Normalize(double[][][] image, double min, double max)Normalize the image.- Parameters:
image- Image.min- Minimum value.max- Maximum value.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG