MATLAB: How will I convert a image into binary image

question

How will I convert a image into binary image?
I = imread('D:\25.jpg');
>> BW = imbinarize(I)
??? Undefined function or method 'imbinarize' for input arguments of type 'uint8'.

Best Answer

doc im2bw