DGtalTools  1.2.0
volCrop

Crops a 3D vol image from domain coordinates.

Usage: volCrop –input <volFileName> –o <volOutputFileName> (both files can be independently in vol, pgm3D, p3d format)

Allowed options are :

Positionals:
1 TEXT:FILE REQUIRED Input vol file.
Options:
-h,--help Print this help message and exit
-i,--input TEXT:FILE REQUIRED Input vol file.
-o,--output TEXT=output.vol Output filename.
--xMin INT=0 x coordinate of lower point.
--yMin INT=0 y coordinate of lower point.
--zMin INT=0 z coordinate of lower point.
--xMax INT REQUIRED x coordinate of upper point.
--yMax INT REQUIRED y coordinate of upper point.
--zMax INT REQUIRED z coordinate of upper point.

Example:

$ volCrop --xMin 50 --yMin 50 --zMin 10 --xMax 150 --yMax 150 --zMax 50 -i ${DGtal}/examples/samples/lobster.vol -o croppedLobster.vol
$ 3dImageViewer -i croppedLobster.vol
Definition: ATu0v1.h:57

You should obtain such a visualization:

Resulting visualization.
See also
volCrop.cpp