binarymask
This program will apply a binary mask to a file. Any voxel where the mask has a value of
zero will generate an output value of zero. Any voxel where the mask is nonzero will retain
the input value.
binarymask
input
maskfile
output
[overwrite?(y/n)]
- where the following definitions apply:
-
- input
- the name of the 8 or 16 bit input file
- maskfile
- the name of the binary mask file (8 or 16 bit files will not be accepted)
- output
- the name of the output file
- overwrite?(y/n)
- 'y' if you want to allow overwriting of existing files output
binarymask originalmri bineditedmri editedmri y
- The binary mask in bineditedmri.img will be applied to the image originalmri.img to
create editedmri.img
- Mismatches in the
number of planes between maskfile and input
are no longer supported in order to provide stricter error checking.
Modified: December 16, 2001
© 2001 Roger P. Woods, M.D.(rwoods@ucla.edu)