Package com.jhlabs.image
Class DiffuseFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.TransformFilter
com.jhlabs.image.DiffuseFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
This filter diffuses an image by moving its pixels in random directions.
-
Field Summary
FieldsFields inherited from class com.jhlabs.image.TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, transformedSpace, WRAP, ZERO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) float
getScale()
void
setScale
(float scale) toString()
protected void
transformInverse
(int x, int y, float[] out) Methods inherited from class com.jhlabs.image.TransformFilter
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Field Details
-
sinTable
public float[] sinTable -
cosTable
public float[] cosTable -
scale
public float scale
-
-
Constructor Details
-
DiffuseFilter
public DiffuseFilter()
-
-
Method Details
-
setScale
public void setScale(float scale) -
getScale
public float getScale() -
transformInverse
protected void transformInverse(int x, int y, float[] out) - Specified by:
transformInverse
in classTransformFilter
-
filter
- Specified by:
filter
in interfaceBufferedImageOp
- Overrides:
filter
in classTransformFilter
-
toString
-