Adds Kanungo noise to a binary object with 0 values as background points and values >0 for the foreground ones.
Usage: volumetric/volAddNoise [OPTIONS] 1 [2]
Allowed options are:
Positionals:
1 TEXT:FILE REQUIRED input image file name (any 3D image format accepted by DGtal::GenericReader)
2 TEXT=result.vol output image file name (any 3D 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 3D image format accepted by DGtal::GenericReader)
-o,--output TEXT=result.vol output image file name (any 3D image format accepted by DGtal::GenericWriter)
-n,--noise FLOAT=0.5 Kanungo noise level in ]0,1[ (default 0.5)
-m,--max Extract only the largest 6-connected component.
Example:
$ volAddNoise $DGtal/examples/samples/Al.100.vol AlNoisy0.4.vol -n 0.4
# Converting in sdp to display:
$ vol2sdp AlNoisy0.4.vol AlNoisy0.4.sdp
# displaying sequence of points:
$ 3dSDPViewer tmp.sdp
You should obtain such a visualization:
Resuling visualisation with 3dSDPViewer.
- See also
- volAddNoise.cpp