This is the implementation of a document image binarization method that makes use of a contrast feature for coarse thresholding and Niblack's method for finer thresholding. The method works on grayscale images alone. A paper with the intricacies will be linked to.