I. Introduction
Histogram equalization is a widely used technique for image enhancement. When an image is equalized, its grey levels should spread till the margins of the entire scale. Also, the pixel number at each grey level should be made as close as possible. Thereby, the new image after equalization would possibly render better contrast effect for human vision, and details in some dark or bright regions could also show up. For continuous images, histogram equalization is relatively simple to complete, and owns exact solution. However, for discrete images, things become different. Usually, several minor grey levels would merge into only one grey level if the discrete images were equalized in the same way as the continuous images. More importantly, the details included in the minor grey levels will be lost after image equalization, although equalization itself is supposed to make details clearer after enhancement.