next up previous index
Next: ``add Gaussian noise'' - Up: Manipulation Previous: ``Range Labelling'' - Set

``Level Slicing'' - pull out a range of gray values

VFX name:
iLevelSlicing.
IMPROPTU name:
Level_Slicing.
purpose:
This assigns all voxels with a gray value greater than or equal to ``Low gray value'' and less than or equal to ``High gray value'' to white and sets all other voxels to black.
input:
An 8-bit volume.
output:
A volume with only two possible gray values.
parameters:
Default parameters menu is
low_gray_val = 96
high_gray_val = 160
white_gray_val = 1
comments:
1.
In Expert mode the user can set the gray value for desired voxels to either '1' or '255'.



MultiDimensional Image Processing Lab, Penn State University