This program may for instance be used as a first step in a ROI analysis.
Here, the mask image contains the ROIs, and the images to be masked may
perhaps be a set of contrast images. In this case, 'vimagemask' must be called
separately for each contrast image.
The parameter '-type' specifies, whether values between '-min' and '-max'
or values below '-min' and exceeding '-max' should be retained.
Example:
vimagemask -in image.v -mask mask.v -out masked_image.v
-min 0 -max 1.5 -type inside
In this example, all voxels with values between 0 and 1.5 in the mask
remain in the result image.
vimagemask -in image.v -mask mask.v -out masked_image.v
-min -3.09 -max 3.09 -type outside
In this example, voxels with values below -3.09 and above 3.09 in the
mask remain part of the result image. As the default value of '-type' is
'outside', this parameter could also be omitted in this example.