Package com.jhlabs.image
Class FieldWarpFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.TransformFilter
-
- com.jhlabs.image.FieldWarpFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class FieldWarpFilter extends TransformFilter
A class which warps an image using a field Warp algorithm.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldWarpFilter.Line
-
Field Summary
-
Fields inherited from class com.jhlabs.image.TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, transformedSpace, WRAP, ZERO
-
-
Constructor Summary
Constructors Constructor Description FieldWarpFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetAmount()FieldWarpFilter.Line[]getInLines()FieldWarpFilter.Line[]getOutLines()floatgetPower()floatgetStrength()voidsetAmount(float amount)voidsetInLines(FieldWarpFilter.Line[] inLines)voidsetOutLines(FieldWarpFilter.Line[] outLines)voidsetPower(float power)voidsetStrength(float strength)java.lang.StringtoString()protected voidtransform(int x, int y, java.awt.Point out)protected voidtransformInverse(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
-
-
-
-
Method Detail
-
setAmount
public void setAmount(float amount)
-
getAmount
public float getAmount()
-
setPower
public void setPower(float power)
-
getPower
public float getPower()
-
setStrength
public void setStrength(float strength)
-
getStrength
public float getStrength()
-
setInLines
public void setInLines(FieldWarpFilter.Line[] inLines)
-
getInLines
public FieldWarpFilter.Line[] getInLines()
-
setOutLines
public void setOutLines(FieldWarpFilter.Line[] outLines)
-
getOutLines
public FieldWarpFilter.Line[] getOutLines()
-
transform
protected void transform(int x, int y, java.awt.Point out)
-
transformInverse
protected void transformInverse(int x, int y, float[] out)- Specified by:
transformInversein classTransformFilter
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)- Specified by:
filterin interfacejava.awt.image.BufferedImageOp- Overrides:
filterin classTransformFilter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-