mkGauss

[ XITE Reference Manual | XITE home ]

Name

mkGauss - make a band with gaussian random noise

Syntax

 #include <xite/noise.h>

 BiffStatus mkGauss( IBAND b, double my,
    double sigma );

Description

mkGauss inserts random noise with Gaussian distribution in band b. 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 pixel type
 2 => Bad my value
 3 => Bad sigma value

Author

Tor L|nnestad, BLAB, ifi, UiO

Id

$Id: mkGauss.c,v 1.21 1996/11/08 14:04:59 svein Exp $