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

BinaryNoise

Generates an image disturbed by binary noise

SYNOPSIS

#include "dip_noise.h"

dip_Error dip_BinaryNoise ( in, out, p10, p01, random )

DATA TYPES

binary

FUNCTION

Generate an image disturbed by binary noise.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput
dip_ImageoutOutput
dip_floatp10Probability of a one to zero transition
dip_floatp01Probability of a one to zero transition
dip_Random *randomPointer to a random value structure

EXAMPLE

Get a binary noise disturbed image as follows:

   dip_Image in, out;
   dip_float p10, p01;
   dip_Random random;

   p10 = 0.1;
   p01 = 0.2;
   DIPXX( dip_BinaryNoise(in, out, p10, p01, &random ));

SEE ALSO

RandomVariable, RandomSeed, UniformNoise, GaussianNoise, PoissonNoise

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