DGtalTools  1.2.0
volMask

Extracts a new image from the a mask image that represents the regions of the image which are selected and copied in the resulting image. Elements outside the regions defined by the mask are set to 0.

Usage: volMask [input]

Allowed options are :

Positionals:
1 TEXT:FILE REQUIRED an input 3D image vol (or ITK: .nii, mha, ... ) file.
2 TEXT=result.vol the output masked image.
Options:
-h,--help Print this help message and exit
-i,--input TEXT:FILE REQUIRED an input 3D image vol (or ITK: .nii, mha, ... ) file.
-t,--inputType TEXT to specify the input image type (int or double).
-a,--mask TEXT:FILE the mask image that represents the elements that are copied as output in the resulting image (by default set to 1 you can change this value by using --maskValue).
-o,--output TEXT=result.vol the output masked image.
-f,--offsetBorder UINT=0 add a border offset to the bounding box of the masked value domain.
-m,--maskValue INT=1 the masking value.

Example:

volMask ${DGtal}/examples/samples/lobster.vol lobsMasked.vol -a ${DGtal}/examples/samples/lobster.vol -m 100
Definition: ATu0v1.h:57
Example of result.
See also
volMask.cpp