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(() => cffi.RandShuffle(dst.ref));
  } else {
    cvRun(() => cffi.RandShuffleWithParams(dst.ref, iterFactor, rng.ref));
  }
  return dst;
}