warpAffineAsync function

Future<Mat> warpAffineAsync(
  1. InputArray src,
  2. InputArray M,
  3. (int, int) dsize, {
  4. int flags = INTER_LINEAR,
  5. int borderMode = BORDER_CONSTANT,
  6. Scalar? borderValue,
})

WarpAffine applies an affine transformation to an image.

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

Implementation

Future<Mat> warpAffineAsync(
  InputArray src,
  InputArray M,
  (int, int) dsize, {
  int flags = INTER_LINEAR,
  int borderMode = BORDER_CONSTANT,
  Scalar? borderValue,
}) async =>
    cvRunAsync(
      (callback) => cffi.WarpAffineWithParams_Async(
        src.ref,
        M.ref,
        dsize.cvd.ref,
        flags,
        borderMode,
        borderValue?.ref ?? Scalar().ref,
        callback,
      ),
      matCompleter,
    );