randShuffle function

Mat randShuffle(
  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

Mat randShuffle(
  InputOutputArray dst, {
  double iterFactor = 1,
  Rng? rng,
}) {
  if (rng == null) {
    cvRun(() => ccore.cv_randShuffle(dst.ref, ffi.nullptr));
  } else {
    cvRun(() => ccore.cv_randShuffle_1(dst.ref, iterFactor, rng.ref, ffi.nullptr));
  }
  return dst;
}