Table of Contents

Method GetPerspectiveTransform

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

GetPerspectiveTransform(IEnumerable<Point2f>, IEnumerable<Point2f>)

Calculates a perspective transform from four pairs of the corresponding points. The function calculates the 3×3 matrix of a perspective transform.

public static Mat GetPerspectiveTransform(IEnumerable<Point2f> src, IEnumerable<Point2f> dst)

Parameters

src IEnumerable<Point2f>

Coordinates of quadrangle vertices in the source image.

dst IEnumerable<Point2f>

Coordinates of the corresponding quadrangle vertices in the destination image.

Returns

Mat

GetPerspectiveTransform(InputArray, InputArray)

Calculates a perspective transform from four pairs of the corresponding points. The function calculates the 3×3 matrix of a perspective transform.

public static Mat GetPerspectiveTransform(InputArray src, InputArray dst)

Parameters

src InputArray

Coordinates of quadrangle vertices in the source image.

dst InputArray

Coordinates of the corresponding quadrangle vertices in the destination image.

Returns

Mat