📖 Stretching

Astrophotography

A non-linear brightness transformation that makes the faint parts of an astronomical image visible without saturating its bright parts.

Also called: stretch, histogram stretch

After stacking, the image is linear: the nebula occupies the first few percent of the value range and looks black, while bright stars reach the top of the scale. Stretching lifts faint values a lot and bright values only a little. It is done with curves, levels, a logarithmic or inverse hyperbolic sine (arcsinh) function, or a histogram transformation that moves the midtones.

Several operations are done beforehand, while the image is still linear: Gradient removal, color calibration and Deconvolution. The stretch itself is best done in several small steps while watching the histogram, keeping the black point slightly above zero so the background looks natural.

Overdoing it is easy to spot: amplified noise and gradients, bloated stars, burnt-out cores. The Orion Nebula (M42) is the classic example, with a very bright core and very faint outer regions: bright areas are protected with masks, or short and long exposures are combined. A stretch cannot be undone, so always keep a copy of the linear image.

Examples in the sky

Learn more

Frequently asked questions

See also

This term is used in

More terms: Astrophotography