Click or drag to resize
CvInvokeRandShuffle Method
Shuffles the matrix by swapping randomly chosen pairs of the matrix elements on each iteration (where each element may contain several components in case of multi-channel arrays)

Namespace: Emgu.CV
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public static void RandShuffle(
	IInputOutputArray mat,
	double iterFactor,
	ulong rng


Type: Emgu.CVIInputOutputArray
The input/output matrix. It is shuffled in-place.
Type: SystemDouble
The relative parameter that characterizes intensity of the shuffling performed. The number of iterations (i.e. pairs swapped) is round(iter_factor*rows(mat)*cols(mat)), so iter_factor=0 means that no shuffling is done, iter_factor=1 means that the function swaps rows(mat)*cols(mat) random pairs etc
Type: SystemUInt64
Pointer to MCvRNG random number generator. Use 0 if not sure
See Also