Threshold converted from bin number to gray level

In Otsu.java getThreshold, the threshold is calculated as a bin number.  Added code to convert it to a gray level.