mergeAsync function

Future<Mat> mergeAsync(
  1. VecMat mv, {
  2. OutputArray? dst,
})

Merge creates one multi-channel array out of several single-channel ones.

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

Implementation

Future<Mat> mergeAsync(VecMat mv, {OutputArray? dst}) async {
  dst ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccore.cv_merge(mv.ref, dst!.ref, callback),
    (c) {
      return c.complete(dst);
    },
  );
}