Entropy of grayscale image
By default, entropy uses two bins for logical arrays and
256 bins for uint8, uint16, or
double arrays. entropy converts any
class other than logical to uint8 for the
histogram count calculation so that the pixel values are discrete and directly
correspond to a bin value.
[1] Gonzalez, R. C., R. E. Woods, and S. L. Eddins. Digital Image Processing Using MATLAB. New Jersey, Prentice Hall, 2003, Chapter 11.