https://5dok.net/document/qmjv47x5-automatic-thresholding-convolutional-neural-networks-segmentation-watershed-transform.html