DGtalTools  0.9.2
volBoundary2obj

Extracts digital points from 3d vol files.

Usage: volBoundary2obj [input] [output]

Allowed options are:

-h [ --help ] display this message
-i [ --input ] arg vol file (.vol) , pgm3d (.p3d or .pgm3d, pgm
(with 3 dims)) file or sdp (sequence of
discrete points)
-o [ --output ] arg output obj file (.obj)
-m [ --thresholdMin ] arg (=0) threshold min (excluded) to define binary
shape
-M [ --thresholdMax ] arg (=255) threshold max (included) to define binary
shape
--dicomMin arg (=-1000) set minimum density threshold on Hounsfield
scale
--dicomMax arg (=3000) set maximum density threshold on Hounsfield
scale
--mode arg (=INNER) set mode for display: INNER: inner voxels,
OUTER: outer voxels, BDRY: surfels
-n [ --normalization ] Normalization so that the geometry fits in
[-1/2,1/2]^3

Example:

$ volBoundary2obj -i $DGtal/examples/samples/lobster.vol -m 80 -o out.obj

You should obtain such a visualization:

resVolBoundary2obj.png
resulting visualisation.
See also
volBoundary2obj.cpp