getPerspectiveTransform function

Mat getPerspectiveTransform(
  1. VecPoint src,
  2. VecPoint dst, [
  3. int solveMethod = DECOMP_LU
])

GetPerspectiveTransform returns 3x3 perspective transformation for the corresponding 4 point pairs as image.Point.

For further details, please see: https:///docs.opencv.org/master/da/d54/group__imgproc__transform.html#ga8c1ae0e3589a9d77fffc962c49b22043

Implementation

Mat getPerspectiveTransform(VecPoint src, VecPoint dst, [int solveMethod = DECOMP_LU]) {
  final mat = calloc<cimgproc.Mat>();
  cvRun(() => cimgproc.GetPerspectiveTransform(src.ref, dst.ref, mat, solveMethod));
  return Mat.fromPointer(mat);
}