Adds noise (Kanungo's) to a binary 2D object.
Usage: imgAddNoise [input] [output]
Allowed options are:
Positionals:
1 TEXT:FILE REQUIRED input image file name (any 2D image format accepted by DGtal::GenericReader).
2 TEXT=result.png output image file name (any 2D image format accepted by DGtal::GenericWriter)
Options:
-h,--help Print this help message and exit
-i,--input TEXT:FILE REQUIRED input image file name (any 2D image format accepted by DGtal::GenericReader).
-o,--output TEXT=result.png output image file name (any 2D image format accepted by DGtal::GenericWriter)
-n,--noise FLOAT=0.5 Kanungo noise level in ]0,1[ (default 0.5)
Example:
$ imgAddNoise ${
DGtal}/examples/samples/klokan.pgm noise.pgm
You will obtain such image:
Resulting image.
- See also
- imgAddNoise.cpp