public class DisplaceFilter extends TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO| Constructor and Description |
|---|
DisplaceFilter() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
float |
getAmount()
Get the amount of distortion.
|
java.awt.image.BufferedImage |
getDisplacementMap()
Get the displacement map.
|
void |
setAmount(float amount)
Set the amount of distortion.
|
void |
setDisplacementMap(java.awt.image.BufferedImage displacementMap)
Set the displacement map.
|
java.lang.String |
toString() |
protected void |
transformInverse(int x,
int y,
float[] out)
Inverse transform a point.
|
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpaceclone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBpublic void setDisplacementMap(java.awt.image.BufferedImage displacementMap)
displacementMap - an image representing the displacment at each pointgetDisplacementMap()public java.awt.image.BufferedImage getDisplacementMap()
setDisplacementMap(java.awt.image.BufferedImage)public void setAmount(float amount)
amount - the amountgetAmount()public float getAmount()
setAmount(float)public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
filter in interface java.awt.image.BufferedImageOpfilter in class TransformFilterprotected void transformInverse(int x,
int y,
float[] out)
TransformFiltertransformInverse in class TransformFilterx - 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 imagepublic java.lang.String toString()
toString in class java.lang.Object