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
Fields inherited from class com.jhlabs.image.TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) float
getScale()
Returns the scale of the texture.void
setScale
(float scale) Specifies the scale of the texture.toString()
protected void
transformInverse
(int x, int y, float[] out) Inverse transform a point.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
-
Constructor Details
-
DiffuseFilter
public DiffuseFilter()
-
-
Method Details
-
setScale
public void setScale(float scale) Specifies the scale of the texture.- Parameters:
scale
- the scale of the texture.- See Also:
-
getScale
public float getScale()Returns the scale of the texture.- Returns:
- the scale of the texture.
- See Also:
-
transformInverse
protected void transformInverse(int x, int y, float[] out) Description copied from class:TransformFilter
Inverse transform a point. This method needs to be overriden by all subclasses.- Specified by:
transformInverse
in classTransformFilter
- Parameters:
x
- the X position of the pixel in the output imagey
- the Y position of the pixel in the output imageout
- the position of the pixel in the input image
-
filter
- Specified by:
filter
in interfaceBufferedImageOp
- Overrides:
filter
in classTransformFilter
-
toString
-