http://www.emgu.com
calculates matrix of perspective transform such that: (t_i x'_i,t_i y'_i,t_i)^T=map_matrix (x_i,y_i,1)^T where dst(i)=(x'_i,y'_i), src(i)=(x_i,y_i), i=0..3.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.0.1717 (2.4.0.1717)

Syntax

C#
public static HomographyMatrix GetPerspectiveTransform(
	PointF[] src,
	PointF[] dest
)
Visual Basic
Public Shared Function GetPerspectiveTransform ( _
	src As PointF(), _
	dest As PointF() _
) As HomographyMatrix
Visual C++
public:
static HomographyMatrix^ GetPerspectiveTransform(
	array<PointF>^ src, 
	array<PointF>^ dest
)

Parameters

src
Type: array<System.Drawing..::..PointF>[]()[][]
Coordinates of 4 quadrangle vertices in the source image
dest
Type: array<System.Drawing..::..PointF>[]()[][]
Coordinates of the 4 corresponding quadrangle vertices in the destination image

Return Value

The 3x3 Homography matrix

See Also