MATLAB: How to make a binary image by specifying a threshold? for example more than intensity 200 be 1 and less than be 0

binary imageImage Processing ToolboxMATLAB

how do I make a binary image by specifying a threshold? for example more than intensity 200 be 1 and less than be 0?

Best Answer

Or just
BW = YourImage > 200;