binarize
Purpose:
This program will convert an 8 or 16 bit file to binary format
Usage:
binarize input
output
[overwrite?(y/n)]
[min]
[max]
- where the following definitions apply:
- input
- the name of the input file
- output
- the name of the binary file to be created
- overwrite?(y/n)
- 'y' grants permission to overwrite existing file name
output
- min
- pixels must be greater than or equal to this value in order
to be set to a value of 1 in the output file.
- max
- pixels must be less than or equal to this value in order to
be set to a value of 1 in the output file.
Examples:
binarize editedmri bineditedmri y
- The file editedmri.img will be converted to a binary file
bineditedmri.img. All non-zero values in editedmri.img will be
assiged a value of 1 in the binary output.
Comments:
- Binary files represent an efficient way to store editing,
regions-of-interest, traced landmarks, etc.
- If max is less than min, all output voxels will have a value
of zero.
Error messages: (alphabetical by
case)
See also: Generic error messages
- WARNING: Peculiar range: min=____ max=____
- You have specified a minimum or maximum that are out of the
possible range of voxel values. An output file based on your
specifications has been generated.
See also:
Modified: December 11, 1996
© 1995-96 Roger P. Woods,
M.D.(rwoods@ucla.edu)