|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.zxing.common.PerspectiveTransform
public final class PerspectiveTransform
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.
Method Summary | ||
---|---|---|
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)
|
|
void |
transformPoints(float[] points)
|
|
void |
transformPoints(float[] xValues,
float[] yValues)
Convenience method, not optimized for performance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal