https://fr.mathworks.com/help/images/ref/im2bw.html
im2bw - (Not recommended) Convert image to binary image, based on threshold - MATLAB
This MATLAB function converts the grayscale image I to binary image BW, by replacing all pixels in the input image with luminance greater than level with the...
not recommendedconvert image