📖 Histogram

Astrophotography

A graph showing how many pixels in an image have each brightness level, from black on the left to white on the right.

Also called: image histogram

The horizontal axis shows brightness levels; the vertical axis shows how many pixels have each level. A deep-sky image is mostly sky background, so its histogram shows a single peak, the background, followed by a long and very low tail to the right made of the stars and the target.

When capturing, the histogram is used to set the exposure time. The background peak should be clearly separated from the left edge: pixels stuck at zero have lost their information for good. Only a few pixels should sit against the right edge, those of saturated stars. The histogram on the back of a camera is computed from the JPEG preview, which is already stretched; a common recommendation is to place the peak about a quarter to a third of the way across.

During processing, the stacked image is linear and its peak stays squeezed against the left: stretching widens it to reveal the faint signal. A common mistake is to raise the black point into the peak, which crushes the background and wipes out faint outer regions. The three color histograms also help balance the hue: a neutral background has its three peaks on top of one another.

Learn more

See also

More terms: Astrophotography