binarize


Purpose:

Converts 8 or 16 bit image files to 1 bit 'binary' files


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 1 bit 'binary' file to be created
overwrite?(y/n)
'y' grants permission to overwrite output
min
pixels with intensities from this value to max inclusive are converted to 1's
if max is not listed, any pixels with intensities greater than or equal to this value are converted to 1's
max
pixels with intensities from minto this value inclusive are converted to 1's

Examples:

binarize editedmri bineditedmri y binarize statistical_file significant_file y 16384 binarize mri_file white_matter_file y 100 170

Comments:


Error messages: (alphabetical by case)

See also: Generic error messages
____ is not a valid long integer
the listed value of min or max is either not a number, or else is so extreme in its value that it cannot be parsed
Computations not performed due to anticipated output problems with ____
file permissions, nonexistence of the directory, lack of overwrite permission or other factors will preclude saving output
Unable to map max to internal representation value
the specified value of max is not in the range that is compatible with input
Unable to map min to internal representation value
the specified value of min is not in the range that is compatible with input

See also:


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