mkPoisson

[ XITE Reference Manual | XITE home ]

Name

mkPoisson - make a band with Poisson random noise.

Syntax

 #include <xite/noise.h>

 int mkPoisson( double alfa, IBAND output );

Description

mkPoisson inserts random noise with Poisson distribution in band output. The distribution has mean value alfa and variance alfa. If resulting value is larger than 255, output is set to 255, and if resulting value is less than 0, output is set to 0.

Restrictions

Accepts only unsigend byte pixeltype.

Return value

 0 => ok
 1 => Bad pixel type

Reference

J. Banks: Discrete-event system simulation.

Author

Helene Schulerud, BLAB, Ifi, UiO

Id

$Id: mkPoisson.c,v 1.19 1997/03/07 12:52:15 svein Exp $