Combining many exposures of the same field, aligned and then averaged pixel by pixel, to reduce noise and bring out faint detail.
Also called: image stacking, image integration
Every sub contains the same signal from the sky, but the noise varies randomly from one sub to the next. Averaging N subs keeps the signal unchanged while the noise shrinks: the signal-to-noise ratio is multiplied by the square root of N. Sixteen subs multiply it by 4, a hundred subs by 10, so each further gain costs more and more time.
After calibration, the software detects the stars in each frame, registers the images (shift, rotation, sometimes slight distortion) and combines the values pixel by pixel. A plain average keeps everything; the median and statistical rejection methods (sigma clipping, or kappa-sigma) discard outliers such as aircraft and satellite trails, cosmic ray hits and hot pixels. Rejection works better the more subs there are and when they are offset from one another by Dithering.
Before stacking, it pays to sort the subs: a blurred frame, one veiled by cloud or spoiled by a tracking error degrades the result. Planetary imaging uses the same principle but keeps only the best frames of a video: that is Lucky imaging.