DGtalTools  0.9.4
volAddNoise

Adds Kanungo noise to a binary object with 0 values as background points and values >0 for the foreground ones.

Usage: volAddNoise [input] [output]

Allowed options are:

Allowed options are: :
-h [ --help ] display this message
-i [ --input ] arg input image file name (any 3D image format accepted
-o [ --output ] arg output image file name (any 3D image format
-n [ --noise ] arg (=0.5) Kanungo noise level in ]0,1[ (default 0.5)
-m [ --max ] Extract only the largest 6-connected component.

Example:

$ volAddNoise -i $DGtal/examples/samples/Al.100.vol -o AlNoisy0.4.vol -n 0.4
# Converting in sdp to display:
$ vol2sdp -i AlNoisy0.4.vol -o AlNoisy0.4.sdp
# displaying sequence of points:
$ 3dSDPViewer -i tmp.sdp

You should obtain such a visualization:

resVolAddnoise.png
Resuling visualisation with 3dSDPViewer.
See also
volAddNoise.cpp