apeia.eu

← Astro blog

Halo Star Removal in PixInsight

A halo star removal tool for PixInsight

I have always struggled with star halos and have tried lots of workflows one can find on YouTube or on the internet in general. Tedious the work was, with limited and unsatisfactory outcomes. The little HaloHalo tool is my attempt to squash these nasty gremlins of stray optics I’ve learnt to hate.

Now the removal is mostly a matter of a few clicks. The best results can be achieved with linear images but the tool works with stretched ones as well.

Installation

  1. Add the link below to PixInsight’s script repositories via RESOURCES -> Updates -> Manage Repositories. The link must end with a trailing / character, otherwise PixInsight will not recognize it.
  2. Click RESOURCES -> Updates -> Check for Updates.
  3. Restart PixInsight.
  4. You will find it here: SCRIPT -> apeia -> HaloHalo
https://apeia.eu/astro-tools/halohalo/

If you find HaloHalo useful, please consider buying me a coffee.

Contact

If you find a bug or a halo that defeats the tool, you can post it at Cloudynights HaloHalo post.

I’m hunting for nasty halos. If you post one there, I’ll either advise you on how to deal with it or use it to improve the tool.

A Few Processing Examples

A textbook halo

I pulled this example from an article describing a manual halo removal workflow, so that you can compare the results. The image was already stretched. Not ideal, but the tool still works.

Before and after: a broad circular halo around a bright star is gone in the corrected image
Before and after - the halo goes, the nebulosity behind it stays.
Used settings
Used settings: instead of the standard 'Star Model' I used a star protection mask here, because of a micro-lens reflection that the internal halo model cannot represent properly. Large feathering avoids a sudden drop at the star edge, which doesn't look natural on stars this bright.

An asymmetric, low-contrast one

Before and after of a faint uneven glow around a star
A faint, lopsided glow - barely above the noise.
Used settings
Used settings

A nasty one with a rim

Before and after of a strong halo sitting on top of nebulosity
A strong halo sitting right on top of nebulosity, with a rim on it. Two passes were needed to get rid of the rim.
Used settings
Quite bright stars often need manual protection, since the star model doesn't protect them well enough. This first pass couldn't get rid of the rim completely.
Used settings
A second pass to subdue the rim further. Star protection is extened since I didn't want to touch the inner circle, since it is de-haloed already. Feathering is boosted too, for a smoother transition.