The Equalize command (in the Adjust section of the Image menu) is used to redistribute the tones in an image. It accomplishes this by examining the image for the lightest and darkest pixels and then changing the lightest to white and the darkest to black. The remaining pixels are adjusted so that their tone is spread between the new limits.
See: