|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.generation5.vision.Filter
org.generation5.vision.ConvolutionFilter
This class implements a convolution filter. This class is merely a wrapper for
the Java 2D ConvolveOp, but implements the Generation5 JDK's
Filter.
| Field Summary | |
protected java.awt.image.Kernel |
kernel
The kernel to be used. |
| Constructor Summary | |
ConvolutionFilter()
Creates a new instance of ConvolutionFilter |
|
ConvolutionFilter(java.awt.image.Kernel kernel)
Creates a new instance of a convolution filter with the given kernel. |
|
| Method Summary | |
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage image,
java.awt.image.BufferedImage output)
Convolve the image using the kernel. |
java.awt.image.Kernel |
getKernel()
Return the kernel currently set. |
void |
setKernel(java.awt.image.Kernel kernel)
Set the kernel to be used. |
java.lang.String |
toString()
|
| Methods inherited from class org.generation5.vision.Filter |
filter, verifyOutput, verifyOutput, verifyOutput |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.awt.image.Kernel kernel
| Constructor Detail |
public ConvolutionFilter()
public ConvolutionFilter(java.awt.image.Kernel kernel)
kernel - the kernel to use.| Method Detail |
public void setKernel(java.awt.image.Kernel kernel)
kernel - the kernel.public java.awt.image.Kernel getKernel()
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage image,
java.awt.image.BufferedImage output)
filter in class Filteroutput - the pre-allocated output image (optional).image - the input image.
Filter.verifyOutput(BufferedImage, BufferedImage)public java.lang.String toString()
|
This documentation is part of the Generation5 JDK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||