Many image processing techniques use binarization for object detection in images, where the objects and background are well distinct by their brightness values, where, the threshold level is globally assigned, on the other hand, if it's adaptive, the threshold level is locally calculated. In order to determine the optimal binarization threshold, fro…