C# Класс zxingwp7.common.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.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 ) : PerspectiveTransform
quadrilateralToSquare ( float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3 ) : PerspectiveTransform
squareToQuadrilateral ( float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3 ) : PerspectiveTransform
transformPoints ( float points ) : void
transformPoints ( float xValues, float yValues ) : void

Convenience method, not optimized for performance.

Приватные методы

Метод Описание
PerspectiveTransform ( float a11, float a21, float a31, float a12, float a22, float a32, float a13, float a23, float a33 )
buildAdjoint ( ) : PerspectiveTransform
times ( PerspectiveTransform other ) : PerspectiveTransform

Описание методов

quadrilateralToQuadrilateral() публичный статический Метод

public static 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 ) : PerspectiveTransform
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
Результат PerspectiveTransform

quadrilateralToSquare() публичный статический Метод

public static quadrilateralToSquare ( float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3 ) : PerspectiveTransform
x0 float
y0 float
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float
Результат PerspectiveTransform

squareToQuadrilateral() публичный статический Метод

public static squareToQuadrilateral ( float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3 ) : PerspectiveTransform
x0 float
y0 float
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float
Результат PerspectiveTransform

transformPoints() публичный Метод

public transformPoints ( float points ) : void
points float
Результат void

transformPoints() публичный Метод

Convenience method, not optimized for performance.
public transformPoints ( float xValues, float yValues ) : void
xValues float
yValues float
Результат void