randShuffleAsync function

Future<Mat> randShuffleAsync(
  1. InputOutputArray dst, {
  2. double iterFactor = 1,
  3. Rng? rng,
})

RandShuffle Shuffles the array elements randomly.

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

Implementation

Future<Mat> randShuffleAsync(
  InputOutputArray dst, {
  double iterFactor = 1,
  Rng? rng,
}) async =>
    cvRunAsync0(
      (callback) => rng == null
          ? cffi.RandShuffle_Async(dst.ref, callback)
          : cffi.RandShuffleWithParams_Async(dst.ref, iterFactor, rng.ref, callback),
      (c) => c.complete(dst),
    );