Digital image processing, equalizing the histogram of an image