Specifications
Image Creation and Access
4-43
4
NoiseUniformInit,
NoiseUniformInitFp
Initializes parameters
for generating noise
signal with uniform
distribution.
void iplNoiseUniformInit ( IplINoiseParam*
noiseParam
,
unsigned int
seed
, int
low
, int
high
);
void iplNoiseUniformInitFp ( IplINoiseParam*
noiseParam
,
unsigned int
seed
, float
low
, float
high
);
noiseParam
Pointer to the structure that contains parameters
for the noise generator.
seed
The initial seed value for the pseudo-random
number generator.
low, high
The lower and upper bounds for the range of
uniformly distributed values.
Discussion
Use functions iplNoiseUniformInit(), iplNoiseUniformInitFp() to
initialize the
noiseParam
structure if you want to generate the noise signal
with uniform distribution over the range [
low
,
high
]. After that you can
call the
iplNoiseImage() function, which actually generates and adds
the noise signal.