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.10.1935 (2.4.10.1935)

Syntax

C#
public static IntPtr cvGetPerspectiveTransform(
	PointF[] src,
	PointF[] dst,
	IntPtr mapMatrix
)
Visual Basic
Public Shared Function cvGetPerspectiveTransform ( 
	src As PointF(),
	dst As PointF(),
	mapMatrix As IntPtr
) As IntPtr
Visual C++
public:
static IntPtr cvGetPerspectiveTransform(
	array<PointF>^ src, 
	array<PointF>^ dst, 
	IntPtr mapMatrix
)
F#
static member cvGetPerspectiveTransform : 
        src : PointF[] * 
        dst : PointF[] * 
        mapMatrix : IntPtr -> IntPtr 

Parameters

src
Type: array<System.Drawing..::..PointF>[]()[][]
Coordinates of 4 quadrangle vertices in the source image
dst
Type: array<System.Drawing..::..PointF>[]()[][]
Coordinates of the 4 corresponding quadrangle vertices in the destination image
mapMatrix
Type: System..::..IntPtr
Pointer to the destination 3x3 matrix

Return Value

Type: IntPtr
Pointer to the perspective transform matrix

See Also