Table of Contents

Class PerspectiveTransform

Namespace
ZXing.Common
Assembly
zxing.dll

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.

public sealed class PerspectiveTransform
Inheritance
PerspectiveTransform
Inherited Members

Methods

quadrilateralToQuadrilateral(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)

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)

Parameters

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 float

Returns

PerspectiveTransform

quadrilateralToSquare(float, float, float, float, float, float, float, float)

public static PerspectiveTransform quadrilateralToSquare(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)

Parameters

x0 float
y0 float
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float

Returns

PerspectiveTransform

squareToQuadrilateral(float, float, float, float, float, float, float, float)

public static PerspectiveTransform squareToQuadrilateral(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3)

Parameters

x0 float
y0 float
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float

Returns

PerspectiveTransform

transformPoints(float[])

public void transformPoints(float[] points)

Parameters

points float[]

transformPoints(float[], float[])

Convenience method, not optimized for performance.

public void transformPoints(float[] xValues, float[] yValues)

Parameters

xValues float[]
yValues float[]