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.


Variable Index

 o alpha
 o kernel

Constructor Index

 o ConvolveFilter()
Construct a filter with a null kernel.
 o ConvolveFilter(double[])
Construct a filter with the given 3x3 kernel.
 o ConvolveFilter(int, int, double[])
Construct a filter with the given kernel.
 o ConvolveFilter(Kernel)
Construct a filter with the given 3x3 kernel.

Method Index

 o convolve(Kernel, int[], int[], int, int)
 o convolve(Kernel, int[], int[], int, int, boolean)
 o getKernel()
 o imageComplete(int)
 o setKernel(Kernel)
 o toString()

Variables

 o kernel
 protected com.jhlabs.image.Kernel kernel
 o alpha
 public boolean alpha

Constructors

 o ConvolveFilter
 public ConvolveFilter()
Construct a filter with a null kernel. This is only useful if you're going to change the kernel later on.

 o ConvolveFilter
 public ConvolveFilter(double matrix[])
Construct a filter with the given 3x3 kernel.

Parameters:
matrix - an array of 9 doubles containing the kernel
 o 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
 o 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

Methods

 o setKernel
 public void setKernel(com.jhlabs.image.Kernel kernel)
 o getKernel
 public com.jhlabs.image.Kernel getKernel()
 o imageComplete
 public void imageComplete(int status)
Overrides:
imageComplete in class java.awt.image.ImageFilter
 o convolve
 public static void convolve(com.jhlabs.image.Kernel kernel,
                             int inPixels[],
                             int outPixels[],
                             int width,
                             int height)
 o convolve
 public static void convolve(com.jhlabs.image.Kernel kernel,
                             int inPixels[],
                             int outPixels[],
                             int width,
                             int height,
                             boolean alpha)
 o toString
 public java.lang.String toString()
Overrides:
toString in class java.lang.Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index