In the following subsections you find four examples for
binarization methods. A simple threshold binarization, an adaptive threshold algorithm, an example for automatical thresholding
controlled by average brightness and
a histogram threshold example are provided.