flipAsync function

Future<Mat> flipAsync(
  1. InputArray src,
  2. int flipCode, {
  3. OutputArray? dst,
})

Flip flips a 2D array around horizontal(0), vertical(1), or both axes(-1).

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

Implementation

Future<Mat> flipAsync(InputArray src, int flipCode, {OutputArray? dst}) async {
  dst ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccore.cv_flip(src.ref, dst!.ref, flipCode, callback),
    (c) {
      return c.complete(dst);
    },
  );
}