|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
public abstract class WholeImageFilter
A filter which acts as a superclass for filters which need to have the whole image in memory to do their stuff.
Field Summary | |
---|---|
protected java.awt.Rectangle |
originalSpace
The input image bounds. |
protected java.awt.Rectangle |
transformedSpace
The output image bounds. |
Constructor Summary | |
---|---|
WholeImageFilter()
Construct a WholeImageFilter. |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
|
protected abstract int[] |
filterPixels(int width,
int height,
int[] inPixels,
java.awt.Rectangle transformedSpace)
Actually filter the pixels. |
protected void |
transformSpace(java.awt.Rectangle rect)
Calculate output bounds for given input bounds. |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.Rectangle transformedSpace
protected java.awt.Rectangle originalSpace
Constructor Detail |
---|
public WholeImageFilter()
Method Detail |
---|
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
protected void transformSpace(java.awt.Rectangle rect)
rect
- input and output rectangleprotected abstract int[] filterPixels(int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |