PANDORE Version 6 GREYC-IMAGE

paddnoise



Adds artificial noise to image.



Synopsis

paddnoise law mean std_dev [-m mask] [im_in|-] [im_out|-]

Description

paddnoise adds artificial noise to the input image im_in. Several distribution laws exist either additive or multiplicative and can be chosen from the parameter law. The output image im_out is built as follows:

where im_noise is a noise image built from the specified distribution law.

Let u1 and u2 be two random variables uniformly distributed on the space [0..1]. The noise value for pixel p is computed as follows:

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE in case of bad parameter values.

Examples

Adds gaussian noise with mean 0 and standard deviation 1.5 to tangram.pan image and then computes the PSNR for the meanfilter smoothing operator:

   paddnoise 1 0 1.5 tangram.pan a.pan
   pmeanfilter 2 a.pan i1.pan
   ppsnr 255 tangram.pan i1.pan
   pstatus

See also

Utility

C++ prototype

Errc PAddNoise( const Img2duc &im_in, Img2duc &im_out, int law, Float mean, Float std_dev );

Version française

Génération de bruit aléatoire sur une image.


Author: Régis Clouard