binarymask


Purpose:

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.


Usage:

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

Examples:

binarymask originalmri bineditedmri editedmri y

Comments:


See also:


Modified: December 16, 2001
© 2001   Roger P. Woods, M.D.(rwoods@ucla.edu)