Star Reduction Without Halos

Eric Brown6 min read

In this post3 sections
  1. Where the dark ring comes from
  2. Ways to reduce stars without the ring
  3. How much is too much
Dense Milky Way band with bright pinpoint stars
Photo by Vincent Beneche on Unsplash

Shrinking the stars in a Milky Way photo is one of the easiest ways to let the core read clearly. It's also one of the easiest ways to leave a dark ring around every bright star (some people call it a moat). If you've seen that on your own images, the fix depends on what caused it.

Where the dark ring comes from

The simplest way to shrink stars is a minimum filter (Photoshop calls it Minimum, and astro tools call the same idea erosion). It looks at each pixel, finds the darkest value in the pixels around it, and uses that. Stars are small bright spots, so their edges get eaten away and they shrink.

The trouble is that the filter doesn't stop at the edge of the star. The sky around a star is never perfectly smooth. It has noise in it, and in a nightscape it has the Milky Way's structure too. A minimum filter picks the darkest of those values every time. Run it through a selection or star mask, which is how most people apply it, and the sky right around each star ends up darker than the untouched sky beyond it. The Deep Sky Colors documentation for its DeepMorphology tool describes exactly this: a plain erosion "can pull bright structures (and their glow) down past the surrounding background, leaving a dark ring or moat" (DeepMorphology docs).

Illustration of brightness across one simulated star: the original star, the result of a Minimum filter through a star mask dipping below the sky level to form a dark ring, and a clamped version that stays at the sky level

The chart is a simulated star, built to show the mechanism. The red line is a minimum filter applied through a star mask that reaches past the star into its faint glow and the sky beyond it. Inside the mask the sky gets pulled down, outside the mask it doesn't, and the difference is the dark ring. The green line is the same reduction with one simplified rule added: nothing inside the mask can go darker than the sky level. The star gets much smaller and dimmer either way, and with the floor in place the ring is gone. (Real tools that clamp, like the reconstruction mode below, keep the sky's natural texture while they do it, which this simple floor doesn't.)

A bigger filter digs a deeper ring, and you can stop the ring at any strength by keeping the result from dropping below the sky around the star.

Ways to reduce stars without the ring

Mask tightly, and leave the big stars alone. A star mask keeps the reduction off the sky, but the mask's edge matters. A mask that reaches past the star into open sky is what produces the ring in the chart above. A tighter mask makes the ring smaller, though one that hugs the star too closely leaves its glow untouched around a smaller core. The Deep Sky Colors morphological transformation tutorial suggests building the mask first and using one that leaves only "the contour of the stars" unprotected (Deep Sky Colors tutorial). It also points out that "usually, very large stars don't need to be reduced in size," and warns that its own mask settings are not "a cooking recipe," which is fair, since every image needs its own.

Put a floor under the result. Some tools can limit the reduction so it can't drop below the local background. DeepMorphology calls this reconstruction, which "constrains the result to the original image so it cannot over- or undershoot the local background" (DeepMorphology docs). Its docs also say a circular structuring element (the shape of the area the filter samples) "preserves small round structures (such as stars) better than a box."

Separate the stars, then recombine. Tools like StarNet and StarXTerminator split an image into a starless layer and a stars layer, so you can work on each one separately. Siril's documentation notes that removing stars "usually helps to control star bloat during the different stretches" (Siril, StarNet), and its Star Recomposition tool gives "a real-time preview of the combination of two separate images with different stretches applied to each" (Siril, Star Recomposition). Shrinking a stars layer that sits on black can't pull the sky below the starless layer, so the shrinking step itself won't dig a ring. The starless layer does have to fill in the sky behind every star it took out, so check those spots at 100% after you shrink.

Siril also offers a star reduction script by Rich Stevenson. It runs StarNet to make the starless image, needs a stretched image to start from, and defaults to a Value of 0.2 (0.5 does nothing, and anything above 0.5 makes stars bigger).

One-step tools. StarShrink from RC Astro is built for "bloated, fuzzy stars," and RC Astro says that in some ways it's similar to Photoshop's Spherize or Pinch filters, applied to every star at once.

NightScape Lab. I'd put the star tools in NightScape Lab up against any of the tools above. The Stars tool has three modes, and all of them work the separate-layer way: the stars come off onto their own layer, and the sky underneath is never touched. Remove takes the stars out and leaves a starless sky (more on that in Star Removal for Astrophotography). Reduce shrinks every star up to a size you set and leaves the big ones alone. Dim turns every star down by the same share and keeps the brightest cores. If Reduce isn't enough, you can run Remove, denoise the starless sky, and then use the Star Map to bring the stars back only part of the way. None of the three can push the sky below where it started, so none of them can leave a ring. And it's all in the same app where you stack and finish the image, so there's no trip out to another program and back. You can see them on the stars example, and if you're comparing tools, there are side-by-side pages for StarShrink, StarXTerminator and StarNet.

How much is too much

The best check takes about ten seconds. Zoom to 100% on a bright star, set your eyedropper or color sampler to average a small area (5 by 5 pixels or so), and sample the sky just outside the star with the reduction turned on and then off. Comparing the same spot before and after keeps the Milky Way's own structure out of it. If the sky next to the star is darker with the reduction on, you've made a ring, even if you can't quite see it yet at normal size. After that, look for a few other signs: stars that have turned into flat gray disks, faint stars that have disappeared, and dense star fields that suddenly look empty. Any of those means back off, or go back and tighten the mask.

If the halo around your stars is purple or green instead of dark, that's a different problem. Colored halos are fringing, and they get fixed with defringe tools, which the Defringe section of the nightscape tools guide covers. If stars are stretched into little lines, especially in the corners, that's usually a lens or exposure-length problem, and reduction won't fix it. The round stars example covers that case. And if you want the stars gone entirely, that's removal, a separate workflow I've covered in Star Removal for Astrophotography. For where star reduction fits in the rest of the edit, How to Finish Astrophotography Images walks through the order. And if you're still planning the shot, Milky Way Planner will help you pick the night.

NightScape Lab is out now for macOS, Windows and Linux, at $129 USD once. You can Buy now.

Like this? Get the next one.

I send product news, new guides and release notes. No spam, unsubscribe anytime.

Keep reading

More to read.

All posts
  1. Long Exposure Noise Reduction for Nightscapes: Turn It Off, Shoot Your Own Darks

    Why I turn Long Exposure Noise Reduction off for stacked Milky Way frames, shoot my own darks instead, and how many lights and darks to shoot.

    6 min readCraft

  2. Why Milky Way photos are noisy

    Why a single Milky Way frame looks grainy, where the noise comes from, and the two fixes I use after the shoot: stacking and Denoise.

    4 min readCraft