calculates threshold by Otsu method
Threshold = CalculateOtsuThreshold(Image);
2D matrix of type uint8, uint16, uint32 or double
result of threshold calculation. The type of Threshold is the same as the type of Image.
This function calculates the threshold of a numeric image using the Otsu method.