perspectiveTransformAsync function

Future<Mat> perspectiveTransformAsync(
  1. InputArray src,
  2. InputArray m, {
  3. OutputArray? dst,
})

PerspectiveTransform performs the perspective matrix transformation of vectors.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#gad327659ac03e5fd6894b90025e6900a7

Implementation

Future<Mat> perspectiveTransformAsync(InputArray src, InputArray m, {OutputArray? dst}) async {
  dst ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccore.cv_perspectiveTransform(src.ref, dst!.ref, m.ref, callback),
    (c) {
      return c.complete(dst);
    },
  );
}