Function Reference
— Function File: BW = im2bw (I,threshold)
— Function File: BW = im2bw (X,cmap,threshold)

Converts image data types to a black-white (binary) image. The treshold value should be in the range [0,1].