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

GaussianNoise

Generate an image disturbed by Gaussian noise

SYNOPSIS

#include "dip_noise.h"

dip_Error dip_GaussianNoise ( in, out, variance, random )

DATA TYPES

integer, float

FUNCTION

Generate an image disturbed by additive Gaussian noise.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput
dip_ImageoutOutput
dip_floatvarianceVariance of the Gaussian distribution the noise is drawn from
dip_Random *randomPointer to a random value structure

EXAMPLE

Get a image with additive Gaussian noise as follows:

   dip_Image in, out;
   dip_float variance;
   dip_Random random;

   variance = 1.0;
   DIPXX(dip_GaussianNoise(in, out, variance, &random ));

SEE ALSO

RandomVariable, RandomSeed, UniformNoise, PoissonNoise, BinaryNoise

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