im_addgnoise(3)

im_addgnoise3

Add gaussian noise to an image

Usage

#include <vips/vips.h>

int im_addgnoise(in, out, sigma)
IMAGE *in, *out;
double sigma;

Overview

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.

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

Author

N. Dessipris - 25/04/1991

From libvips-dev 7.20.7-1+b3 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.