The function Threshold converts an image to pure black and white. You can define a threshold value, and the parts of the image brighter than that threshold will become white, and the rest black.