IM_GAUSNOISE

Section: C Library Functions (3)
Updated: 10 May 1991
Index Return to Main Contents
 

NAME

im_gaussnoise - creates a gaussian noisy picture  

SYNOPSIS

#include <vips/vips.h>

int im_gaussnoise(image, xsize, ysize, mean, sigma)
IMAGE *image;
int xsize, ysize;
double mean, sigma;

 

DESCRIPTION

im_gaussnoise() creates a float one band gaussian noise picture of size xsize by ysize. The created image has mean mean and square root of variance equal to sigma. The noise is generated by averaging 12 random numbers.

 

RETURN VALUE

The function returns 0 on success and -1 on error.  

SEE ALSO

im_grey(3), im_addgnoise(3).  

COPYRIGHT

N. Dessipris  

AUTHOR

N. Dessipris - 10/05/1991