Skip to content

Key Post-Processing Techniques

The master light produced by stacking is only the starting point for post-processing. The goal of post-processing is to faithfully reveal the information already recorded in the data, not to manufacture detail out of nothing. This page breaks down, item by item, several key techniques in deep-sky and planetary processing, giving the principles, operational essentials, typical parameters, and common pitfalls. We recommend first reading through the processing workflow to build an understanding of the overall sequence, then returning here to dive into each step.

There are fixed ordering constraints between the steps: deconvolution, color calibration, and the like must be done in the linear stage, whereas aggressive stretching, star reduction, and local sharpening are mostly performed in the non-linear stage. Doing things out of order often amplifies noise or destroys color.

The Whirlpool Galaxy M51 and its companion galaxy NGC 5195
The Whirlpool Galaxy M51: well-executed post-processing can render the layered structure of the spiral arms, dust lanes, and tidal bridge without introducing artifacts. 图源 NASA and European Space Agency · Public domain

The image straight out of stacking is a linear image, in which pixel values are proportional to the number of photons reaching the sensor. Deep-sky targets span an enormous dynamic range: a star’s core may be thousands of times brighter than a faint nebula, while the nebula itself is only slightly above the background noise. As a result, the histogram of a linear image is almost entirely crammed against the darkest end, appearing nearly all black on screen.

StageMeaning of pixel valuesHistogram shapeSuitable processing
LinearProportional to photon countAll crammed on the leftGradient removal, color calibration, deconvolution, preliminary noise reduction
Non-linearCompressed by a mapping for displaySpread toward the rightFinalizing the stretch, star reduction, sharpening / local contrast, final noise reduction

Light pollution, moonlight, zodiacal light, and airglow superimpose uneven brightness and color gradients on the frame, making the background brighter on one side and darker or tinted on the other. Lens vignetting can also leave the edges darkened when flat correction is incomplete. This is the most common defect in broadband imaging.

SourceCharacteristicsMitigation
Light pollutionBrighter toward the city, often tinted orange-redDark sites, light pollution filters, gradient removal
MoonlightLarge-scale smooth gradient, varies with lunar phaseAvoid full moon, image regions far from the Moon
Zodiacal light / airglowFaint glow along the ecliptic or near the horizonHard to avoid, handled by gradient removal
VignettingSymmetric darkening of the four cornersProper flat correction

The general idea of gradient removal: place sample points at locations judged to be “pure background” → the software fits a smooth background model surface → subtract that surface from the original image so the background becomes uniform.

  • DBE (Dynamic Background Extraction): PixInsight’s interactive tool, which lets the user manually place sample points and uses a surface spline to interpolate the background model, offering high flexibility.
  • ABE (Automatic Background Extraction): samples automatically and fits the background with a polynomial least-squares fit of a given order; simple to use but unable to distinguish target from background well, prone to errors at the edges of large targets.
  • GraXpert / Siril Background Extraction: includes both AI and spline algorithms, performs well on complex backgrounds and wide-field star-rich fields, and is suitable for frames where DBE/ABE struggle to find clean background.

The goal of color calibration is to return the colors of stars and the target to physical reality, rather than eyeballing a white balance. It must be performed on the linear image, because calibration depends on the linear proportionality between each channel and light intensity.

  • Traditional white balance: assumes the overall background is close to neutral gray, or uses a star of known color temperature as a white reference. The Sun’s spectral type is G2V, so G2V-type stars are often used as the “white” reference. This method is simple but is significantly affected by the chosen selection and residual light pollution.
  • Photometric Color Calibration (PCC): the software identifies stars in the frame, compares their photometric color indices against a star catalog (such as Gaia), and back-calculates the correct weights for the three channels.
  • Spectrophotometric Color Calibration (SPCC): building on PCC, it incorporates the BP/RP low-resolution spectra from Gaia DR3 and accounts for the spectral response of the filters and sensor, achieving the highest color accuracy and now the mainstream choice.

Narrowband data does not follow natural-color logic; instead it assigns channels according to a palette (such as SHO/HOO), as detailed in narrowband imaging. For the relationship between star color and spectral type or temperature, see stellar physics.

Stretching applies a non-linear intensity mapping to the linear image: brightening the shadows substantially to pull nebulae out from the noise floor, while compressing the highlights to keep star cores from blowing out to dead white. In essence it uses a deliberate non-linear compression to fit an enormous dynamic range into the limited range a screen can display.

MethodMathematical formCharacteristics
HistogramTransformationPower-law mapping with a midpointClassic and intuitive, easily over-brightens the background
Arcsinh (inverse hyperbolic sine)y ∝ asinh(x)Protects star colors, gentler lift of the shadows
Masked StretchMultiple small stretches + automatic maskingControls star bloat, flatter background
GHS (Generalized Hyperbolic Stretch)Generalized hyperbolic family with multiple adjustable degrees of freedomPrecisely specifies “which brightness range to lift,” offering the most control

GHS was proposed by David Payne in 2021 and implemented as scripts and processing modules together with Mike Cranfield; it is now available in both PixInsight and Siril. HistogramTransformation is in fact a special case of the generalized hyperbolic equation when the exponent equals 1, so GHS can be viewed as a generalization and unification of the former.

Atmospheric seeing and optical diffraction “smear” a point source into a blur spot of finite size; this blur kernel is called the point spread function (PSF). Imaging can be regarded as the convolution of the true signal with the PSF; deconvolution attempts to invert this convolution process, “recovering” the detail that was blurred away, making stars more compact and the structures of galaxies and nebulae sharper.

  • The commonly used algorithm is the regularized Richardson–Lucy iterative method, which generally gives the best results for deep-sky images; Wiener deconvolution is a non-iterative method that explicitly incorporates noise statistics. The blur from the Hubble Space Telescope’s early primary-mirror aberration was partly corrected precisely with the help of deconvolution.
  • It must be used in the linear stage, on high signal-to-noise regions. Deconvolution amplifies noise (dividing by small values in the frequency domain), and low-SNR regions become dominated by noise and distorted.
  • It requires an accurate PSF (which can be obtained by fitting unsaturated stars in the frame), together with a star mask / local deringing support image (LDSI) to protect bright stars.
  • Applying too much force produces dark rings and ringing artifacts around stars — a telltale sign of over-processing, especially likely on bright stars.
  • AI tools such as BlurXTerminator have greatly lowered the barrier and can handle a spatially varying PSF, but restraint is still required to avoid generating “false detail” that does not exist in the original data.

Understanding noise reduction first requires understanding the signal-to-noise ratio (SNR): the signal is the light from the target, and the noise is the random fluctuation superimposed on it.

Noise typeSourceAccumulates with exposure?
Shot noisePoisson fluctuation in photon arrival, equal to the square root of the signalYes, the stronger the signal the larger its absolute value
Read noiseIntroduced each time the sensor is read out, a fixed valueNo, but accumulates with more frames stacked
Dark current noiseThermally induced pixel leakage, increasing with temperatureYes, its bias can be corrected with dark frames
Light pollution noiseShot noise of the sky backgroundYes, and the noise remains even after subtracting the signal

The key conclusion: noise reduction cannot raise SNR out of nothing; it merely smooths the noise spatially. True SNR comes from the total exposure — stacking N frames raises SNR by about a factor of √N, so stacking 100 frames raises it roughly tenfold. To bring detail that is half as bright up to the same SNR requires about four times as many frames, with clearly diminishing returns. The signal of light pollution can be subtracted by gradient removal, but its noise remains permanently, so a dark-sky environment is fundamentally superior to after-the-fact noise reduction.

  • Multiscale / wavelet noise reduction: decomposes the image into layers of different scales. Most random noise is concentrated at the smallest scale (the first layer), while star and nebula structures are distributed across larger scales, so noise reduction can focus on the small-scale layers while leaving the large-scale layers containing real structure largely untouched.
  • AI noise reduction (such as NoiseXTerminator, GraXpert Denoise): based on trained models that distinguish noise texture from structure, highly efficient, but likewise capable of “smoothing away” real faint detail.
  • Treating regions differently: apply more reduction to the dark background and less to bright areas with structure, avoiding smoothing real detail into a plastic-like appearance.

In star-dense regions, a screen full of stars can overwhelm faint diffuse nebulosity. Star reduction shrinks and dims the stars to make nebula structure stand out; meanwhile, processing stars and nebula on separate layers lets each receive the most appropriate stretch and noise reduction strength.

  1. Use tools such as StarXTerminator / StarNet to separate the stars and the starless background into two layers (starless and stars-only).
  2. Freely stretch, sharpen, and reduce noise on the starless layer, without worrying about stars bloating or being tinted along with it.
  3. After shrinking the star layer, blend it back onto the starless layer with an additive blend mode such as “screen,” controlling the number and brightness of the stars.

The aim of sharpening is to enhance contrast at small to medium scales, making structural edges clearer. In deep-sky work, multiscale methods are common: in a wavelet or multiscale linear transform, the contrast of specific scale layers is selectively amplified, rather than applying uniform sharpening to the whole image. HDR Multiscale Transform (HDRMT) is used to compress the local contrast of high-dynamic-range targets (such as the M42 core or galactic nuclei), making the internal structure of over-bright regions visible again. Sharpening should be done in the non-linear stage and combined with masks to limit its scope, avoiding amplification of background noise.

Planetary targets follow the lucky imaging route: atmospheric turbulence changes from moment to moment, but occasionally a moment of excellent seeing occurs. One therefore captures tens of thousands of short-exposure video frames (single frames often ≤100 milliseconds), then picks out the sharpest small fraction to stack. This idea originates in professional astronomy — when rigorously applied, lucky imaging can bring a 2.5-meter aperture telescope close to its diffraction limit, improving resolution roughly fivefold over conventional imaging.

  1. Frame selection and stacking (AutoStakkert!): automatically aligns frames, ranks them by quality (sharpness/contrast), and stacks only the best certain percentage. In amateur practice the top 10% is often retained, dropping to as low as 1%–5% under excellent conditions.
  2. Wavelet sharpening (RegiStax / WaveSharp / AstroSurface): uses wavelets to decompose the image into multiple scales, extracting and enhancing layer by layer details such as Jupiter’s cloud belts, Saturn’s ring divisions, and Martian surface features.
  3. Moderate finishing: apply appropriate noise reduction and color balancing. Over-sharpening produces mosaic-like noise specks, concentric rings, and false textures.

For camera, sampling rate, and seeing techniques on the capture side, see planetary imaging; for observing conditions and seeing assessment, see observing conditions.

The most common failure in post-processing is not processing “too little” but processing “too much.” The table below summarizes several typical artifacts and their causes.

ArtifactAppearanceMain cause
Dead-black backgroundShadows clipped to pure black, faint structure lostBlack point set too high during stretching
Star dark rings / ringingDark rings or concentric patterns around bright starsExcessive deconvolution or sharpening without a star mask
Plastic appearanceOver-smoothing, detail looks waxyToo much noise reduction, mistakenly removing real small-scale structure
Fluorescent-colored starsDistorted, oversaturated star colorsMissing color calibration or saturation maxed out
Star-reduction holesSunken star cores, donut shapesExcessive amount of star reduction
False planetary texturesMosaic patches, concentric false ringsToo much gain on wavelet sharpening layers