The number of bins of the histogram in the statistics view is fix defined to 768. In some images, the difference between the min and max gray value is less than 768 bins, which results in an useless-resolution histogram (especially if values are copied by "Copy to Clipboard" to Excel).
The number of histogram bins should be set variable for each image. For example: initialize the number of histogram bins with the difference between the min and max gray value of the image and add a slider to reduce the number of bins by a factor x e.g. for images with a high gray value difference.