public final class PerspectiveTransform
extends java.lang.Object
This class implements a perspective transform in two dimensions. Given four source and four destination points, it will compute the transformation implied between them. The code is based directly upon section 3.4.2 of George Wolberg's "Digital Image Warping"; see pages 54-56.
Modifier and Type | Field and Description |
---|---|
private float |
a11 |
private float |
a12 |
private float |
a13 |
private float |
a21 |
private float |
a22 |
private float |
a23 |
private float |
a31 |
private float |
a32 |
private float |
a33 |
Modifier | Constructor and Description |
---|---|
private |
PerspectiveTransform(float a11,
float a21,
float a31,
float a12,
float a22,
float a32,
float a13,
float a23,
float a33) |
Modifier and Type | Method and Description |
---|---|
(package private) PerspectiveTransform |
buildAdjoint() |
static PerspectiveTransform |
quadrilateralToQuadrilateral(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x0p,
float y0p,
float x1p,
float y1p,
float x2p,
float y2p,
float x3p,
float y3p) |
static PerspectiveTransform |
quadrilateralToSquare(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3) |
static PerspectiveTransform |
squareToQuadrilateral(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3) |
(package private) PerspectiveTransform |
times(PerspectiveTransform other) |
void |
transformPoints(float[] points) |
void |
transformPoints(float[] xValues,
float[] yValues) |
private final float a11
private final float a12
private final float a13
private final float a21
private final float a22
private final float a23
private final float a31
private final float a32
private final float a33
private PerspectiveTransform(float a11, float a21, float a31, float a12, float a22, float a32, float a13, float a23, float a33)
public static PerspectiveTransform quadrilateralToQuadrilateral(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float x0p, float y0p, float x1p, float y1p, float x2p, float y2p, float x3p, float y3p)
public void transformPoints(float[] points)
public void transformPoints(float[] xValues, float[] yValues)
public static PerspectiveTransform squareToQuadrilateral(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)
public static PerspectiveTransform quadrilateralToSquare(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)
PerspectiveTransform buildAdjoint()
PerspectiveTransform times(PerspectiveTransform other)