Equalize

This functions equalizes either the whole contents of an image or the area specified by a selection. It operates on a histogram of the images. An equalized image has a uniform distribution of intensity levels. That is, it has about the same amount of dark pixels as light pixels. Equalization means taking an image and making it have such properties. The result will be an image whose intensity histogram is almost flat.