---
name: "im_addgnoise"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_addgnoise"
---

# im\_addgnoise(3)

add gaussian noise to an image

## NAME

im\_addgnoise - add gaussian noise to an image

## SYNOPSIS

\#include \<vips/vips.h\>

int im\_addgnoise(in, out, sigma)\
 IMAGE \*in, \*out;\
 double sigma;

## DESCRIPTION

im\_addgnoise() adds gaussian noise with mean 0 and standard deviation sigma to the image held by the image descriptor in and writes the result on the image descriptor out.  The function works on any non-complex input image.  Input can have any no of bands.  The noise is generated by adding 12 random numbers.

## RETURN VALUE

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

## SEE ALSO

[im\_add(3)](/im_add/3.md), [im\_lintra(3)](/im_lintra/3.md), [im\_multiply(3)](/im_multiply/3.md).

## COPYRIGHT

N. Dessipris

## AUTHOR

N. Dessipris - 25/04/1991
