DGtalTools  0.9.4
imgAddNoise

Adds noise (Kanungo's) to a binary 2D object.

Usage: imgAddNoise [input] [output]

Allowed options are:

-h [ --help ] display this message
-i [ --input ] arg input image file name (any 2D image format accepted
-o [ --output ] arg output image file name (any 2D image format
accepted by DGtal::GenericWriter)
-n [ --noise ] arg (=0.5) Kanungo noise level in ]0,1[ (default 0.5)
resulting volumetric file.

Example:

$ imgAddNoise -i ${DGtal}/examples/samples/klokan.pgm -o noise.pgm

You will obtain such image:

resImgAddNoise.png
Resulting image.
See also
imgAddNoise.cpp