Entropy is a measure of information content. It measures the randomness of intensity distribution. Such a matrix corresponds to an image in which there are no preferred gray level pairs for the distance vector d. Entropy is highest when all entries in P [i,j] are of similar magnitude, and small when the entries in P[i,j] are unequal.