% less than LEVEL and 1 (white) for all other values.Īt that time, the prefix 'im' in the function name meant that the function could take more than one image type (indexed, intensity, RGB).Īt this point in the early history of MATLAB, the language really only had one type. BW is 0 (black) for all pixels with luminance % BW = IM2BW(R,G,B,LEVEL) converts the RGB image to black % value less than LEVEL and 1 (white) for all other values. % BW = IM2BW(I,LEVEL) converts the gray level intensity image % than LEVEL and 1 (white) for all other values. % BW is 0 (black) for all pixels with luminance less % colormap MAP to a black and white intensity image BW. % BW = IM2BW(X,MAP,LEVEL) converts the indexed image X with Here is the help text from that early function: %IM2BW Convert image to black and white by thresholding. That was about the time I interviewed for my job at MathWorks. The function im2bw appeared in Image Processing Toolbox version 1.0, which shipped in early fall 1993. Today I'll start by talking about im2bw and graythresh, two functions that have been in the product for a long time. As I promised last time, I'm writing a series about functional designs for image binarization in the Image Processing Toolbox.