com.jhlabs.image

Class MapFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class MapFilter
extends TransformFilter

Field Summary

Fields inherited from class com.jhlabs.image.TransformFilter

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

Constructor Summary

MapFilter()

Method Summary

Function2D
getXMapFunction()
Function2D
getYMapFunction()
void
setXMapFunction(Function2D xMapFunction)
void
setYMapFunction(Function2D yMapFunction)
String
toString()
protected void
transformInverse(int x, int y, float[] out)
Inverse transform a point.

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

MapFilter

public MapFilter()

Method Details

getXMapFunction

public Function2D getXMapFunction()

getYMapFunction

public Function2D getYMapFunction()

setXMapFunction

public void setXMapFunction(Function2D xMapFunction)

setYMapFunction

public void setYMapFunction(Function2D yMapFunction)

toString

public String toString()

transformInverse

protected void transformInverse(int x,
                                int y,
                                float[] out)
Inverse transform a point. This method needs to be overriden by all subclasses.
Overrides:
transformInverse in interface TransformFilter
Parameters:
x - the X position of the pixel in the output image
y - the Y position of the pixel in the output image
out - the position of the pixel in the input image