A learning-based thresholding method customizable to computer vision applications. (January 2015)