DIPlib Documentation - ©1995-2008 Quantitative Imaging Group, Delft University of Technology.

UniformNoise

Generate an image disturbed by uniform noise

SYNOPSIS

#include "dip_noise.h"

dip_Error dip_UniformNoise ( in, out, lowerBound, upperBound, random )

DATA TYPES

integer, float

FUNCTION

Generate an image disturbed by additive uniform noise.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput
dip_ImageoutOutput
dip_floatlowerBoundLower bound of the uniform distribution the noise is drawn from
dip_floatupperBoundUpper bound of the uniform distribution the noise is drawn from
dip_Random *randomPointer to a random value structure

EXAMPLE

Get a image with additive uniform noise as follows:

   dip_Image in, out;
   dip_float lower, upper;
   dip_Random random;

   lower = 1.0;
   upper = 10.0;
   DIPXX(dip_UniformNoise(in, out, lower, upper, &random ));

SEE ALSO

RandomVariable, RandomSeed, GaussianNoise, PoissonNoise, BinaryNoise

DIPlib on-line documentation | Function reference | Global function index