Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Histogram
equalization is a method in image processing of contrast adjustment
using the image's histogram. This method usually increases the global
contrast of many images, especially when the usable data of the image is
represented by close contrast values. Through this adjustment, the
intensities can be better distributed on the histogram. This allows for
areas of lower local contrast to gain a higher contrast. Histogram
equalization accomplishes this by effectively spreading out the most
frequent intensity values. The method is useful in images with
backgrounds and foregrounds that are both bright or both dark. In
particular, the method can lead to better views of bone structure in
x-ray images, and to better detail in photographs that are over or
under-exposed.