Convert an image to binary by thresholding
BW = im2bw(Img, threshold [, maxvalue])
BW = im2bw(Index, map, threshold [, maxvalue])
Img
can take. (Optional, defaults to 1)Function im2bw
converts RGB images, indexed images and grayscale intensity images to binary, by thresholding.
http://siptoolbox.sf.net