Histogram equalization in image processing