Table of Contents

Method GetAffineTransform

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

GetAffineTransform(IEnumerable<Point2f>, IEnumerable<Point2f>)

Calculates an affine transform from three pairs of the corresponding points. The function calculates the 2×3 matrix of an affine transform.

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

Parameters

src IEnumerable<Point2f>

Coordinates of triangle vertices in the source image.

dst IEnumerable<Point2f>

Coordinates of the corresponding triangle vertices in the destination image.

Returns

Mat

GetAffineTransform(InputArray, InputArray)

Calculates an affine transform from three pairs of the corresponding points. The function calculates the 2×3 matrix of an affine transform.

public static Mat GetAffineTransform(InputArray src, InputArray dst)

Parameters

src InputArray

Coordinates of triangle vertices in the source image.

dst InputArray

Coordinates of the corresponding triangle vertices in the destination image.

Returns

Mat