DGtalTools  1.2.0
slice2vol

Converts set of 2D images into volumetric file (pgm3d, vol, longvol).

Usage: slice2vol [input] [output]

Allowed options are:

Options:
-h,--help Print this help message and exit
-i,--input TEXT ... REQUIRED input 2D files (.pgm)
-o,--output TEXT volumetric file (.vol, .longvol .pgm3d)
-s,--sliceOrientation UINT:{0,1,2}=2 specify the slice orientation for which the slice are defined (by default =2 (Z direction))

Example:

$ slice2vol -i slice1.pgm slice2.pgm slice3.pgm -o out.vol
See also
slice2vol.cpp