Threshold node with otsu algorithm