sortAsync function

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

Sort sorts each row or each column of a matrix.

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

Implementation

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