|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.TransformFilter
com.jhlabs.image.DisplaceFilter
public class DisplaceFilter
A filter which simulates the appearance of looking through glass. A separate grayscale displacement image is provided and pixels in the source image are displaced according to the gradient of the displacement map.
| Field Summary |
|---|
| Fields inherited from class com.jhlabs.image.TransformFilter |
|---|
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO |
| Constructor Summary | |
|---|---|
DisplaceFilter()
|
|
| Method Summary | |
|---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst)
|
float |
getAmount()
Get the amount of distortion. |
BufferedImage |
getDisplacementMap()
Get the displacement map. |
void |
setAmount(float amount)
Set the amount of distortion. |
void |
setDisplacementMap(BufferedImage displacementMap)
Set the displacement map. |
String |
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DisplaceFilter()
| Method Detail |
|---|
public void setDisplacementMap(BufferedImage displacementMap)
displacementMap - an image representing the displacment at each pointgetDisplacementMap()public BufferedImage getDisplacementMap()
setDisplacementMap(java.awt.image.BufferedImage)public void setAmount(float amount)
amount - the amountgetAmount()public float getAmount()
setAmount(float)
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
filter in interface BufferedImageOpfilter in class TransformFilter
protected void transformInverse(int x,
int y,
float[] out)
TransformFilter
transformInverse 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 String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||