CVB.Net 14.0
PerspectiveTransformation Struct Reference

Perspective transformation coefficients. More...

Public Member Functions

 PerspectiveTransformation (Point2Dd leftTop, Point2Dd rightTop, Point2Dd rightBottom, Point2Dd leftBottom, Rect destRect)
 Calculate the defining coefficients for the perspective transformation. More...
 
 PerspectiveTransformation (Point2Dd leftTop, Point2Dd rightTop, Point2Dd rightBottom, Point2Dd leftBottom, RectD destRect)
 Calculate the defining coefficients for the perspective transformation. More...
 

Properties

double C00 [get]
 Defining coefficient for the transformation.
 
double C01 [get]
 Defining coefficient for the transformation.
 
double C02 [get]
 Defining coefficient for the transformation.
 
double C10 [get]
 Defining coefficient for the transformation.
 
double C11 [get]
 Defining coefficient for the transformation.
 
double C12 [get]
 Defining coefficient for the transformation.
 
double C20 [get]
 Defining coefficient for the transformation.
 
double C21 [get]
 Defining coefficient for the transformation.
 
double C22 [get]
 Defining coefficient for the transformation.
 

Detailed Description

Perspective transformation coefficients.

Performed calculation is:

X = (C00*X' + C01*Y' + C02) / (C20*X' + C21*Y' + C22)
Y = (C10*X' + C11*Y' + C12) / (C21*X' + C21*Y' + C22)

Constructor & Destructor Documentation

◆ PerspectiveTransformation() [1/2]

PerspectiveTransformation ( Point2Dd  leftTop,
Point2Dd  rightTop,
Point2Dd  rightBottom,
Point2Dd  leftBottom,
Rect  destRect 
)

Calculate the defining coefficients for the perspective transformation.

Parameters
leftTopLeft top corner's coordinate in the source image.
rightTopRight top corner's coordiante in the source image.
rightBottomRight bottom corner's coordinate in the source image.
leftBottomLeft bottom corner's coordinate in the source image.
destRectRectangle containing the positions into which the input points are to be converted.

◆ PerspectiveTransformation() [2/2]

PerspectiveTransformation ( Point2Dd  leftTop,
Point2Dd  rightTop,
Point2Dd  rightBottom,
Point2Dd  leftBottom,
RectD  destRect 
)

Calculate the defining coefficients for the perspective transformation.

Parameters
leftTopLeft top corner's coordinate in the source image.
rightTopRight top corner's coordiante in the source image.
rightBottomRight bottom corner's coordinate in the source image.
leftBottomLeft bottom corner's coordinate in the source image.
destRectRectangle containing the locations the input points are to be transformed to.