addGauss

[ XITE Reference Manual | XITE home ]

Name

addGauss - add gaussian random noise to a band

Syntax

 #include <xite/noise.h>

 BiffStatus addGauss( IBAND b1, IBAND b2,
    double my, double sigma );

Description

Adds random noise with Gaussian distribution to band b1, 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

Author

Tor L|nnestad, BLAB, IfI, UiO

Id

$Id: addGauss.c,v 1.25 1996/11/08 14:04:57 svein Exp $