DGtalTools  1.2.0
vol2sdp

Extracts digital points from 3d vol files.

Usage: vol2sdp [input] [output]

Allowed options are:

vol2sdp ${DGtal}/examples/samples/lobster.vol volumeList.sdp
Usage: ./converters/vol2sdp [OPTIONS] 1 [2]
Positionals:
1 TEXT:FILE REQUIRED vol file (.vol, .longvol .p3d, .pgm3d and if WITH_ITK is selected: dicom, dcm, mha, mhd) or sdp (sequence of discrete points). For longvol, dicom, dcm, mha or mhd formats, the input values are linearly scaled between 0 and 255.
2 TEXT=result.sdp sequence of discrete point file (.sdp)
Options:
-h,--help Print this help message and exit
-i,--input TEXT:FILE REQUIRED
vol file (.vol, .longvol .p3d, .pgm3d and if WITH_ITK is selected: dicom, dcm, mha, mhd) or sdp (sequence of discrete points).
For longvol, dicom, dcm, mha or mhd formats, the input values are linearly scaled between 0 and 255.
-o,--output TEXT=result.sdp sequence of discrete point file (.sdp)
-e,--exportImageValues option to export also the image value of the voxel in a fourth field.
-m,--thresholdMin INT=128 threshold min (excluded) to define binary shape.
-M,--thresholdMax INT=255 threshold max (included) to define binary shape.
--rescaleInputMin INT=0 min value used to rescale the input intensity (to avoid basic cast into 8 bits image).
--rescaleInputMax INT=255 max value used to rescale the input intensity (to avoid basic cast into 8 bits image).
Definition: ATu0v1.h:57

Example:

$ vol2sdp ${DGtal}/examples/samples/lobster.vol volumeList.sdp -m 70
# Visualisation:
$ 3dSDPViewer volumeList.sdp

You should obtain such a visualization:

resulting visualisation.
See also
vol2sdp.cpp