Convert a volumetric file (.vol, .longvol, .pgm3d) into a set of 2D slice images.
Usage: vol2slice [input] [output]
Allowed options are: 
-h [ --help ]                      display this message
-i [ --input ] arg                 input volumetric file (.vol, .longvol, 
                                   .pgm3d) 
-o [ --output ] arg                base_name.extension:  extracted 2D slice 
                                   volumetric files (will result n files 
                                   base_name_xxx.extension) 
-f [ --setFirstSlice ] arg (=0)    Set the first slice index to be extracted.
-l [ --setLastSlice ] arg          Set the last slice index to be extracted 
                                   (by default set to maximal value according
                                   to the given volume).
-s [ --sliceOrientation ] arg (=2) specify the slice orientation for which 
                                   the slice are defined (by default =2 (Z 
                                   direction))
Example: 
# Export Z slice images (-s 2): 
$ vol2slice -i ${DGtal}/examples/samples/lobster.vol -o slice.pgm  -f 10 -l 15 -s 2
You should obtain such a visualization: 
resulting visualisation.
 
 - See also
 - vol2slice.cpp