Package com.jhlabs.image
Class AverageFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.ConvolveFilter
com.jhlabs.image.AverageFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter which averages the 3x3 neighbourhood of each pixel, providing a simple blur.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static float[]
The convolution kernal for the averaging.Fields inherited from class com.jhlabs.image.ConvolveFilter
alpha, CLAMP_EDGES, kernel, premultiplyAlpha, WRAP_EDGES, ZERO_EDGES
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.jhlabs.image.ConvolveFilter
convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, filter, getBounds2D, getEdgeAction, getKernel, getPoint2D, getPremultiplyAlpha, getRenderingHints, getUseAlpha, setEdgeAction, setKernel, setPremultiplyAlpha, setUseAlpha
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, getRGB, setRGB
-
Field Details
-
theMatrix
protected static float[] theMatrixThe convolution kernal for the averaging.
-
-
Constructor Details
-
AverageFilter
public AverageFilter()
-
-
Method Details
-
toString
- Overrides:
toString
in classConvolveFilter
-