Package com.jhlabs.image
Class WholeImageFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
- All Implemented Interfaces:
BufferedImageOp,Cloneable
- Direct Known Subclasses:
BinaryFilter,CausticsFilter,CellularFilter,ContourFilter,DespeckleFilter,DiffusionFilter,EdgeFilter,EmbossFilter,EqualizeFilter,Flush3DFilter,LevelsFilter,LightFilter,MaximumFilter,MedianFilter,MinimumFilter,OilFilter,PlasmaFilter,QuantizeFilter,QuiltFilter,ReduceNoiseFilter,ShapeFilter,SmearFilter,WarpFilter
A filter which acts as a superclass for filters which need to have the whole image in memory
to do their stuff.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(BufferedImage src, BufferedImage dst) protected abstract int[]filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace) Actually filter the pixels.protected voidtransformSpace(Rectangle rect) Calculate output bounds for given input bounds.Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Field Details
-
transformedSpace
The output image bounds. -
originalSpace
The input image bounds.
-
-
Constructor Details
-
WholeImageFilter
public WholeImageFilter()Construct a WholeImageFilter.
-
-
Method Details
-
filter
-
transformSpace
Calculate output bounds for given input bounds.- Parameters:
rect- input and output rectangle
-
filterPixels
protected abstract int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace) Actually filter the pixels.- Parameters:
width- the image widthheight- the image heightinPixels- the image pixelstransformedSpace- the output bounds- Returns:
- the output pixels
-