High contrast image filter with Otsu binarization
The code makes an Otsu binarization by finding the best threshold value to decide from which RGB value the pixels will be white ( if their value was smaller than the threshold) or black ( if their value was greater than the threshold).