DGtalTools  1.2.0
3dVolViewer

Displays volume file as a voxel set by using QGLviewer.

The mode specifies if you wish to see surface elements (BDRY), the inner voxels (INNER) or the outer voxels (OUTER) that touch the boundary.

Usage: 3dVolViewer [input]

Allowed options are :

Positionals:
1 TEXT:FILE REQUIRED vol file (.vol, .longvol .p3d, .pgm3d and if WITH_ITK is selected: dicom, dcm, mha, mhd). For longvol, dicom, dcm, mha or mhd formats, the input values are linearly scaled between 0 and 255.
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). For longvol, dicom, dcm, mha or mhd formats, the input values are linearly scaled between 0 and 255.
-m,--thresholdMin INT=0 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).
-n,--numMaxVoxel UINT set the maximal voxel number to be displayed.
--displayMesh TEXT display a Mesh given in OFF or OFS format.
--colorMesh UINT ... set the color of Mesh (given from displayMesh option) : r g b a
-d,--doSnapShotAndExit save display snapshot into file. Notes that the camera setting is set by default according the last saved configuration (use SHIFT+Key_M to save current camera setting in the Viewer3D). If the camera setting was not saved it will use the default camera setting.
-t,--transparency UINT=255 change the defaukt transparency

Example:

$ 3dVolViewer $DGtal/examples/samples/lobster.vol -m 60 -t 10

You should obtain such a result:

Resulting visualization.
See also
3dVolViewer.cpp