Package com.jhlabs.image
Class FieldWarpFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.TransformFilter
com.jhlabs.image.FieldWarpFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A class which warps an image using a field Warp algorithm.
-
Nested Class Summary
Nested Classes -
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
Get the amount of warp.float
getPower()
float
void
setAmount
(float amount) Set the amount of warp.void
setInLines
(FieldWarpFilter.Line[] inLines) void
setOutLines
(FieldWarpFilter.Line[] outLines) void
setPower
(float power) void
setStrength
(float strength) toString()
protected void
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
-
FieldWarpFilter
public FieldWarpFilter()
-
-
Method Details
-
setAmount
public void setAmount(float amount) Set the amount of warp.- Parameters:
amount
- the amount- See Also:
-
getAmount
public float getAmount()Get the amount of warp.- Returns:
- the amount
- See Also:
-
setPower
public void setPower(float power) -
getPower
public float getPower() -
setStrength
public void setStrength(float strength) -
getStrength
public float getStrength() -
setInLines
-
getInLines
-
setOutLines
-
getOutLines
-
transform
-
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
-