Entropy

In information theory, a measurement of the amount of information in a signal or image. If P is the probability of a pixel value, then calculate -P log2 P. The entropy of the image is the sum of this value for all pixels.