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