multGauss
[ XITE Reference Manual | XITE home ]
Name
multGauss - multiply band with random gaussian noise
Syntax
#include <xite/noise.h>
int multGauss( IBAND b1, IBAND b2, double my,
double sigma );
Description
multGauss multiplies random noise with Gaussian
distribution to band b1, and places the result in
band b2. The distribution has mean value my and
standard deviation sigma. 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.
Return value
0 => ok
1 => Bad input pixel type
2 => Bad output pixel type
3 => Bad my value
4 => Bad sigma value
Author
Tor L|nnestad, BLAB, ifi, UiO
Id
$Id: multGauss.c,v 1.23 1996/11/08 14:05:01 svein Exp $