This operation
produces an LUT in which all pixels below the user specified lower level
appear black, all pixels between the user specified lower level and the
user specified upper level inclusively appear grey and all pixels above
the user specified upper level appear white.
function call:
[out_img1]=vsg('TripleThresh',in_img1,low_th,high_th);
Arguments:
in_img1
input image, 3 channel
low_th
– an integer or double specifying the lower threshold for the triple
threshold function.
high_th
– an integer or double specifying the higher threshold for the triple
threshold function.
Description:
out_img1
– An image which has dimensions the same as the input image. Values
between BLACK and the user defined integer value lower are set to
BLACK (0). Values between the user defined integer value upper
and WHITE (255) are set to WHITE. Otherwise the pixel is set to MIDGREY
(midway between the minimum and maximum grey level).
Example:
img = openimage('crown.jpg');
h=figure;image(uint8(img));set(h,'Name','Input
Image');
[out_img1]=vsg('TripleThresh',img,50,200);
h=figure;image(uint8(out_img1));set(h,'Name','TripleThresh');
Notes:
1. For DICOM images,
the function operates on all slices separately.
2. For