All Packages Class Hierarchy This Package Previous Next Index
Class com.jhlabs.image.ConvolveFilter
java.lang.Object
|
+----java.awt.image.ImageFilter
|
+----com.jhlabs.image.WholeImageFilter
|
+----com.jhlabs.image.ConvolveFilter
- public class ConvolveFilter
- extends com.jhlabs.image.WholeImageFilter
A filter which applies a convolution kernel to an image.
-
alpha
-
-
kernel
-
-
ConvolveFilter()
- Construct a filter with a null kernel.
-
ConvolveFilter(double[])
- Construct a filter with the given 3x3 kernel.
-
ConvolveFilter(int, int, double[])
- Construct a filter with the given kernel.
-
ConvolveFilter(Kernel)
- Construct a filter with the given 3x3 kernel.
-
convolve(Kernel, int[], int[], int, int)
-
-
convolve(Kernel, int[], int[], int, int, boolean)
-
-
getKernel()
-
-
imageComplete(int)
-
-
setKernel(Kernel)
-
-
toString()
-
kernel
protected com.jhlabs.image.Kernel kernel
alpha
public boolean alpha
ConvolveFilter
public ConvolveFilter()
- Construct a filter with a null kernel. This is only useful if you're going to change the kernel later on.
ConvolveFilter
public ConvolveFilter(double matrix[])
- Construct a filter with the given 3x3 kernel.
- Parameters:
- matrix - an array of 9 doubles containing the kernel
ConvolveFilter
public ConvolveFilter(int rows,
int cols,
double matrix[])
- Construct a filter with the given kernel.
- Parameters:
- rows - the number of rows in the kernel
- cols - the number of columns in the kernel
- matrix - an array of rows*cols doubles containing the kernel
ConvolveFilter
public ConvolveFilter(com.jhlabs.image.Kernel kernel)
- Construct a filter with the given 3x3 kernel.
- Parameters:
- matrix - an array of 9 doubles containing the kernel
setKernel
public void setKernel(com.jhlabs.image.Kernel kernel)
getKernel
public com.jhlabs.image.Kernel getKernel()
imageComplete
public void imageComplete(int status)
- Overrides:
- imageComplete in class java.awt.image.ImageFilter
convolve
public static void convolve(com.jhlabs.image.Kernel kernel,
int inPixels[],
int outPixels[],
int width,
int height)
convolve
public static void convolve(com.jhlabs.image.Kernel kernel,
int inPixels[],
int outPixels[],
int width,
int height,
boolean alpha)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
All Packages Class Hierarchy This Package Previous Next Index