This document discusses contrast adjustment using histogram equalization. Histogram equalization is useful for images with both bright and dark backgrounds/foregrounds. It can improve the visibility of bone structures in x-rays and over/under-exposed photos by increasing contrast. The technique redistributes pixel intensities according to the original frequency distribution to make pixel levels more evenly distributed. It linearizes the cumulative frequency distribution rather than flattening the histogram. An example shows the original histogram, cumulative distribution function, scaled cumulative distribution, and equalized values for an 8x8 pixel image.