randShuffle
import { randShuffle } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSdst, iterFactor
FUNCTIONrandShuffle
RETURN TYPEvoid
Shuffles the array elements randomly.
The function cv::randShuffle shuffles the specified 1D array by randomly choosing pairs of elements and swapping them. The number of such swap operations will be dst.rows*dst.cols*iterFactor .
See: RNG, sort
randShuffle(dst: Mat, iterFactor: number): void;dstInput/output value, modified by the native operation. input/output numerical 1D array.
iterFactorscale factor that determines the number of random swap operations (see the details below).
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.