| org.geotools.referencing.operation.transform.WarpAdapter
WarpAdapter | final class WarpAdapter extends Warp (Code) | | Wraps an arbitrary
MathTransform2D into an image warp operation.
This warp operation is used by
org.geotools.coverage.processing.operation.Resample when no standard warp operation has been found applicable.
since: 2.1 version: $Id: WarpAdapter.java 22482 2006-10-31 02:58:00Z desruisseaux $ author: Martin Desruisseaux |
Constructor Summary | |
public | WarpAdapter(CharSequence name, MathTransform2D inverse) Constructs a new
WarpAdapter using the given transform.
Parameters: name - The coverage name. |
Method Summary | |
public MathTransform2D | getTransform() Returns the transform from image's destination pixels to source pixels. | public Point2D | mapDestPoint(Point2D destPt) Computes the source point corresponding to the supplied point. | public Point2D | mapSourcePoint(Point2D sourcePt) Computes the destination point corresponding to the supplied point. | public float[] | warpSparseRect(int xmin, int ymin, int width, int height, int periodX, int periodY, float[] destRect) Computes the source pixel positions for a given rectangular
destination region, subsampled with an integral period. |
WarpAdapter | public WarpAdapter(CharSequence name, MathTransform2D inverse)(Code) | | Constructs a new
WarpAdapter using the given transform.
Parameters: name - The coverage name. Used for formatting error message. Parameters: inverse - The inverse of the transformation to apply for projectingan image. This inverse transform maps destination pixels to source pixels. |
getTransform | public MathTransform2D getTransform()(Code) | | Returns the transform from image's destination pixels to source pixels.
|
mapDestPoint | public Point2D mapDestPoint(Point2D destPt)(Code) | | Computes the source point corresponding to the supplied point.
Parameters: destPt - The position in destination image coordinatesto map to source image coordinates. |
mapSourcePoint | public Point2D mapSourcePoint(Point2D sourcePt)(Code) | | Computes the destination point corresponding to the supplied point.
Parameters: sourcePt - The position in source image coordinatesto map to destination image coordinates. |
warpSparseRect | public float[] warpSparseRect(int xmin, int ymin, int width, int height, int periodX, int periodY, float[] destRect)(Code) | | Computes the source pixel positions for a given rectangular
destination region, subsampled with an integral period.
|
|
|