addPoisson
[ XITE Reference Manual | XITE home ]
Name
addPoisson - add Poisson noise to the output band
Syntax
#include <xite/noise.h>
int addPoisson( IBAND input, IBAND output );
Description
addPoisson generates Poisson distributed noise in the
output band. For each output pixel, the corresponding
pixelvalue in input is used as the mean value in the
distribution. If the resulting random value is larger than
255, output is set to 255.
Restrictions
Only unsigned byte pixeltype is accepted for input and
output.
Return value
0 => ok
1 => Bad pixel type
Author
Helene Schulerud, BLAB, Ifi, UiO
Id
$Id: addPoisson.c,v 1.19 1997/03/07 12:52:14 svein Exp $