getAffineTransformAsync function

Future<Mat> getAffineTransformAsync(
  1. VecPoint src,
  2. VecPoint dst
)

GetAffineTransform returns a 2x3 affine transformation matrix for the corresponding 3 point pairs as image.Point.

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

Implementation

Future<Mat> getAffineTransformAsync(VecPoint src, VecPoint dst) async {
  final mat = Mat.empty();
  return cvRunAsync0(
    (callback) => cimgproc.cv_getAffineTransform(src.ref, dst.ref, mat.ptr, callback),
    (c) {
      return c.complete(mat);
    },
  );
}