Image Coding
The maximum possible entropy occurs when all the gray levels occur with the same probability (= 1/M), i.e., the various gray levels are equally likely:
The entropy of an image is an important measure as it gives the lower bound on the noise-free transmission rate.
Note: If the number of gray levels M in an image is increased from 2 to 2n bits, Hmax increases from 1 to n bits.