The Levels dialogue box lets you correct the tonal range and colour balance
of an image by adjusting intensity levels of the image's shadows, mid-tones,
and highlights. The Levels histogram serves as a visual guide for adjusting
the image's key tones.
You can set the highlights
and shadows in an image by moving Input sliders to the first group of pixels
on both ends of the Levels histogram. This maps these pixels - the darkest
and lightest pixels in each channel - to black and white, increasing the
tonal range of the image. The corresponding pixels in the other channels
are adjusted proportionately to avoid altering the colour balance. You
can use the middle Input slider to change the intensity values of the middle
range of grey tones without dramatically altering the highlights and shadows.
Although the Levels sliders
are not as exact as assigning target values or using the Curves dialogue
box, they often yield good results.
To adjust tonal range using
Levels:
1 Open the Levels dialogue box.
2 To adjust tones for a specific colour channel, choose an option from
the Channel menu.
To edit a combination of
colour channels at the same time, Shift-select the channels in the Channels
palette before choosing the Levels command. The Channel menu then displays
the abbreviations for the target channels - for example, CM for cyan and
magenta. The menu also contains the individual channels for the selected
combination. You can only edit spot channels and alpha channels individually.
3 To adjust the shadows and highlights, do one of the following:
Drag the black and white
Input Levels sliders to the edge of the first group of pixels on either
end of the histogram. You can also enter values directly into the first
and third Input Levels text boxes.
Drag the black and white
Output Levels sliders to define new shadow and highlight values. You can
also enter values directly in the Output Levels text boxes.
For example, suppose you
want to increase the contrast in an image with pixels that currently cover
a range of only 0-233. If you drag the Input Levels white triangle to 233,
pixels with intensity values of 233 and higher (in each channel of the
image) are mapped to 255; pixels with lower intensity values are mapped
to corresponding lighter values. This re-mapping lightens the image, increasing
the contrast in highlight areas.

Original
Resulting histogram and image