Fundamentals · PixInsight 1.9.x

MorphologicalTransformation

MorphologicalTransformation changes structures by their shape. In astrophotography it is used mainly for star reduction: stars shrink from the outside and stay round.

Purpose

TaskSetting
shrink stars, push back faint starsMorphological Selection, Selection below 0.5
enlarge stars (rarely)Selection above 0.5
Whyreduce stars?

In dense star fields the stars cover the nebula, and stretching has turned even faint stars into prominent dots. Reduction makes stars smaller instead of only dimming them; faint stars recede, bright ones remain as accents.

Principle

For each pixel the operator looks at the neighbourhood defined by the structuring element and picks a value from it.

WhyMorphological Selection rather than erosion?

Morphological Selection picks a value from the sorted list of neighbourhood values. With Selection below 0.5 a darker neighbouring value is chosen – the star shrinks from the outside but stays round as long as the structuring element is circular. Pure erosion would be harsher and would wipe out faint stars entirely.

The effect mainly concerns structures about the size of the structuring element; large bright stars with halos hardly change.

Parameters

ParameterEffectTypical choice
Operatortype of selectionMorphological Selection
Interlacing / Iterationsspacing of the pixels considered / repetitions1 / 1
Amountblend with the original; 0.25 barely visible0.5–0.8
Selectionbelow 0.5 shrinks, 0.5 neutral (median), above 0.5 enlarges0.2–0.3
Structuring Elementshape and size of the neighbourhoodsize 5, circular; 3 if stars turn angular

Structuring element: white cells are active. Circular means: corners black, the rest white (icon with a filled circle). If only the corners are white, the shape is inverted → choose the circle icon. The shape imprints itself on the stars; a square produces angular stars.

Operation

  1. Apply to a copy of the star image (after ). Nothing there needs protecting. In the full image a star mask would be required.
  2. There is no real-time preview: apply, compare at 1:1 or 2:1 with Ctrl+Z / Ctrl+Y, adjust values.
  3. Judge the result finally only after the stars have been recombined.

Typical applications

Star reduction in the star image

Morphological Selection, Selection 0.2–0.3, Amount 0.5–0.8, structuring element 5×5 circular.

Example: Amount 0.60, Selection 0.25, 5×5 circular – faint stars clearly pushed back, medium stars smaller and round, bright stars with halos barely changed.

What a good result looks like

Typical errors

ObservationCauseRemedy
Effect too weakAmount lowAmount 0.7–0.8
Faint stars gone completelyAmount too highAmount 0.5
Stars angular or with a dark corestructuring element too large or squarelower Amount, 3×3 or circular
Stars larger instead of smallerSelection above 0.5Selection 0.2–0.3
Stars distortedstructuring element invertedset circular again
Nebula changedapplied to the full image without a maskapply to the star image

When to use it – and when not

Good forBetter another tool
shrinking stars, especially in dense fieldsonly dimming stars overall → factor s during
pushing back faint starsgreenish stars →
Used in

BlurXTerminator (BXT) · HaLRGB workflow · Narrowband workflow (HOO/SHO) · OSC workflow with a quad band-pass filter · StarXTerminator (SXT)