Fundamentals · PixInsight · StarXTerminator (RC Astro)

StarXTerminator (SXT)

StarXTerminator (SXT) removes the stars from an image and, if requested, also delivers an image containing only the stars. Nebula and stars can then be processed with the tools that suit each and recombined afterwards.

Purpose

TaskResult
process the nebula without stars (contrast, saturation, local contrast)starless image
process the stars separately (colour, size)star image
recombine both at the endscreen blend via PixelMath
Whyseparate the stars?

Every contrast, sharpening and saturation step on the nebula also affects the stars: they bloat, get dark halos or colour fringes and, in dense fields, cover the nebula. Separated, each image gets the right tools, and recombining stays under control.

Principle

  • SXT is trained on non-linear data and works most reliably there. In a stretched image halos and faint stars are also fully visible, so the separation captures all of them.
  • The image is processed in tiles. A larger tile overlap avoids visible tile boundaries and captures large stars with extended halos better.
  • The star image can be computed in two ways. This determines how it must be recombined later:
without Unscreen starswith Unscreen stars
Star imagedifference: original − starlesscomputed so that a screen blend reproduces the original exactly
Recombinationaddition: starless + starsscreen: ~((~starless) * (~stars))
over bright nebulavalues can exceed 1.0 → clipped stars, hard edges, dark rimsmathematically never above 1.0 → stars blend in softly

The option affects only the star image; the starless image is identical with and without Unscreen.

Whyscreen rather than addition?

Screen is defined as 1 − (1 − a)·(1 − b). For small values it behaves like an addition, for large ones it approaches 1 – the result can never overshoot, like two overlapping light sources. When starless and star image are changed separately, they no longer match exactly; an addition then produces values above 1 and hard edges over bright nebula, a screen blend does not.

Parameters

OptionEffectTypical choice
Generate star imagealso create a star imageenabled for the image the stars will later come from; otherwise off
Unscreen starscompute the star image for screen recombinationenabled
Large overlaplarger tile overlapenable for dense star fields or large halos

Operation

  1. Apply to the stretched image.
  2. Result: the image itself becomes starless; with Generate star image a star image is created as well (e.g. …_stars).
  3. Process both images separately; the star image contains nothing but stars on a black background – processes can be applied there without a star mask.
  4. Recombine with PixelMath at the end (see below).

Typical applications

Stars from the colour image

When a colour image and a separate luminance are processed separately, the star image comes from the colour image – only it contains star colours; a star image from the luminance would be grey. The luminance is made starless without Generate star image.

Recombining the stars

PixelMath, destination Replace target image, on a duplicate of the finished starless image:

~((~Starless) * (~(Stars * s)))
Symbols: s = 1.0
  • ~x is the inversion 1 − x; the expression computes the screen blend.
  • Replace the image names with the actual IDs.
  • Replace target image keeps FITS keywords and the astrometric solution; Create new image discards both. The duplicate protects the starless image as a fallback.
sEffect
1.0stars at full intensity
0.7–0.9additional dimming

After a , s = 1.0 is usually right: the stars are already smaller; dimming them further only takes away brilliance, and the image looks flatter.

What a good result looks like

Typical errors

ObservationCauseRemedy
Obvious star remnants, tile boundariesoverlap too smallrecompute with Large overlap
Clipped stars, hard edges over bright nebulaaddition instead of screen, or Unscreen not enabledUnscreen and the screen formula
Stars too bright or too dim after recombinationformula does not match how the star image was computedcheck consistency
Dark halos around bright starsbackground under the star estimated too darkcheck at 1:1 after recombination; usually barely visible over nebula
Astrometric solution missing in the final imagePixelMath with Create new imagerecombine with Replace target image on a duplicate
Grey stars in the final imagestar image from the luminancestar image from the colour image

When to use it – and when not

Good forBetter another tool
processing nebula and stars separatelyonly shrinking stars without processing the nebula → with a star mask
dense star fields where stars cover the nebulalinear data → stretch first, e.g.
Used in

HaLRGB workflow · MorphologicalTransformation · Narrowband workflow (HOO/SHO) · OSC workflow with a quad band-pass filter · PixelMath · RangeSelection (Range Mask)