DGtalTools  0.9.4
vol2sdp

Extracts digital points from 3d vol files.

Usage: vol2sdp [input] [output]

Allowed options are:

-h [ --help ] display this message
-i [ --input ] arg 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 ] arg sequence of discrete point file (.sdp)
-e [ --exportImageValues ] option to export also the image value of the
voxel in a fourth field.
-m [ --thresholdMin ] arg (=128) min threshold (default 128)
-M [ --thresholdMax ] arg (=255) max threshold (default 255)
--rescaleInputMin arg (=0) min value used to rescale the input
intensity (to avoid basic cast into 8 bits
image).
--rescaleInputMax arg (=255) max value used to rescale the input
intensity (to avoid basic cast into 8 bits
image).

Example:

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

You should obtain such a visualization:

resVol2sdp.png
resulting visualisation.
See also
vol2sdp.cpp