License Modified for Otsu Thresholding