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
srcIEnumerable<Point2f>Coordinates of triangle vertices in the source image.
dstIEnumerable<Point2f>Coordinates of the corresponding triangle vertices in the destination image.
Returns
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
srcInputArrayCoordinates of triangle vertices in the source image.
dstInputArrayCoordinates of the corresponding triangle vertices in the destination image.