RNGFill Method (IInputOutputArray, RNGDistType, MCvScalar, MCvScalar, Boolean) |
http://www.emgu.com
Fills arrays with random numbers.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic void Fill(
IInputOutputArray mat,
RNGDistType distType,
MCvScalar a,
MCvScalar b,
bool saturateRange = false
)
Public Sub Fill (
mat As IInputOutputArray,
distType As RNGDistType,
a As MCvScalar,
b As MCvScalar,
Optional saturateRange As Boolean = false
)
public:
void Fill(
IInputOutputArray^ mat,
RNGDistType distType,
MCvScalar a,
MCvScalar b,
bool saturateRange = false
)
member Fill :
mat : IInputOutputArray *
distType : RNGDistType *
a : MCvScalar *
b : MCvScalar *
?saturateRange : bool
(* Defaults:
let _saturateRange = defaultArg saturateRange false
*)
-> unit
Parameters
- mat
- Type: Emgu.CVIInputOutputArray
2D or N-dimensional matrix; currently matrices with more than 4 channels are not supported by the methods, use Mat::reshape as a possible workaround. - distType
- Type: Emgu.CVRNGDistType
distribution type - a
- Type: Emgu.CV.StructureMCvScalar
First distribution parameter; in case of the uniform distribution, this is an inclusive lower boundary, in case of the normal distribution, this is a mean value. - b
- Type: Emgu.CV.StructureMCvScalar
Second distribution parameter; in case of the uniform distribution, this is a non-inclusive upper boundary, in case of the normal distribution, this is a standard deviation (diagonal of the standard deviation matrix or the full standard deviation matrix). - saturateRange (Optional)
- Type: SystemBoolean
Pre-saturation flag; for uniform distribution only; if true, the method will first convert a and b to the acceptable value range (according to the mat datatype) and then will generate uniformly distributed random numbers within the range [saturate(a), saturate(b)), if saturateRange=false, the method will generate uniformly distributed random numbers in the original range [a, b) and then will saturate them
See Also