com.jhlabs.image

Class FieldWarpFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class FieldWarpFilter
extends TransformFilter

A class which warps an image using a field Warp algorithm.

Nested Class Summary

static class
FieldWarpFilter.Line

Field Summary

Fields inherited from class com.jhlabs.image.TransformFilter

BILINEAR, CLAMP, NEAREST_NEIGHBOUR, RGB_CLAMP, WRAP, ZERO, edgeAction, interpolation, originalSpace, transformedSpace

Constructor Summary

FieldWarpFilter()

Method Summary

BufferedImage
filter(BufferedImage src, BufferedImage dst)
float
getAmount()
Get the amount of warp.
FieldWarpFilter.Line[]
getInLines()
FieldWarpFilter.Line[]
getOutLines()
float
getPower()
float
getStrength()
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)
String
toString()
protected void
transform(int x, int y, Point out)
protected void
transformInverse(int x, int y, float[] out)

Methods inherited from class com.jhlabs.image.TransformFilter

filter, filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformInverse, transformSpace

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

FieldWarpFilter

public FieldWarpFilter()

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Overrides:
filter in interface TransformFilter

getAmount

public float getAmount()
Get the amount of warp.
Returns:
the amount

getInLines

public FieldWarpFilter.Line[] getInLines()

getOutLines

public FieldWarpFilter.Line[] getOutLines()

getPower

public float getPower()

getStrength

public float getStrength()

setAmount

public void setAmount(float amount)
Set the amount of warp.
Parameters:
amount - the amount

setInLines

public void setInLines(FieldWarpFilter.Line[] inLines)

setOutLines

public void setOutLines(FieldWarpFilter.Line[] outLines)

setPower

public void setPower(float power)

setStrength

public void setStrength(float strength)

toString

public String toString()

transform

protected void transform(int x,
                         int y,
                         Point out)

transformInverse

protected void transformInverse(int x,
                                int y,
                                float[] out)
Overrides:
transformInverse in interface TransformFilter