|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.vision.Filter
org.jscience.computing.ai.vision.ConvolutionFilter
public class 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()
DOCUMENT ME! |
| Methods inherited from class org.jscience.computing.ai.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 Filterimage - the input image.output - the pre-allocated output image (optional).
java.lang.IllegalArgumentException - DOCUMENT ME!Filter.verifyOutput(BufferedImage,BufferedImage)public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||