getPerspectiveTransform2fAsync function
Future<Mat>
getPerspectiveTransform2fAsync(
- VecPoint2f src,
- VecPoint2f dst, [
- int solveMethod = DECOMP_LU
GetPerspectiveTransform2f returns 3x3 perspective transformation for the corresponding 4 point pairs as gocv.Point2f.
For further details, please see: https:///docs.opencv.org/master/da/d54/group__imgproc__transform.html#ga8c1ae0e3589a9d77fffc962c49b22043
Implementation
Future<Mat> getPerspectiveTransform2fAsync(
VecPoint2f src,
VecPoint2f dst, [
int solveMethod = DECOMP_LU,
]) async {
final mat = Mat.empty();
return cvRunAsync0(
(callback) => cimgproc.cv_getPerspectiveTransform2f(src.ref, dst.ref, mat.ptr, solveMethod, callback),
(c) {
return c.complete(mat);
},
);
}