Histogram equalization is a method for adjusting image intensities to enhance contrast by equalizing the histogram of the input image. It transforms the intensities so that the histogram of the output image approximately matches a uniform distribution. The technique maps the intensity levels in the input image to a new range of values based on the probability distribution function of the original histogram to flatten and widen it, resulting in an increased contrast in the output image.