Converting images to black and white using adaptive thresholding.