Table of Contents

Method Randu

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Randu(InputOutputArray, InputArray, InputArray)

fills array with uniformly-distributed random numbers from the range [low, high)

public static void Randu(InputOutputArray dst, InputArray low, InputArray high)

Parameters

dst InputOutputArray

The output array of random numbers. The array must be pre-allocated and have 1 to 4 channels

low InputArray

The inclusive lower boundary of the generated random numbers

high InputArray

The exclusive upper boundary of the generated random numbers

Randu(InputOutputArray, Scalar, Scalar)

fills array with uniformly-distributed random numbers from the range [low, high)

public static void Randu(InputOutputArray dst, Scalar low, Scalar high)

Parameters

dst InputOutputArray

The output array of random numbers. The array must be pre-allocated and have 1 to 4 channels

low Scalar

The inclusive lower boundary of the generated random numbers

high Scalar

The exclusive upper boundary of the generated random numbers