Problems with blue stars when adding Ha to LRGB.

16 replies•382 views
Enrique Ojeda avatar

Hi! I would greatly appreciate your help. When I'm processing my LRGB_Ha image without stars, and then I want to add stars, I see that the blue stars change color slightly; they turn violet with a red center. This only happens when the Ha is added to my LRGB. In my LRGB, they appear perfectly blue. This is the PixelMath formula I'm using to add Ha in PixInsight:

R=max($T[0], 1.2*Ha)

G=$T[1]

B=iif($T[0]<Ha, $T[2] + 0.06*Ha, $T[2])

I would greatly appreciate any suggestions please.

Thank you.

CS!

Left: stars

Right: starless

📷 image.pngimage.png

Well Written Helpful Respectful Concise Engaging
Christian Bennich avatar

In your workflow, when and how do you screen stars back to your starless.

I cannot remember experiencing a similar problem, if I have unscreened my stars from my RGB image.

Enrique Ojeda avatar

Thanks for taking the time to reply. I stretch my RGB, L, and Ha master. Then I generate my LRGB. After that, I remove the stars and then add the Ha to the starless image. I also tried the same thing but without adding the L. Since I have my RGB_Ha and I add the stars from RGB, then I add the L master to my RGB_Ha. I use Pixel Math to add the stars back to my starless. In both cases, I have this problem. I don't know if it's because of the amount of Ha around the blue stars or if I'm just doing things wrong🙃. Thanks. CS!

Christian Bennich avatar

I assume you extract stars with starxterminator?

Personally, I prefer using Screenstars from https://cosmicphotons.com to reapply stars.

Arguably it’s “just” pixelmath - but it works for me.

Christian Bennich avatar

I think, when you “screen” the stars back, they are not “blended” in and would maintain their looks from the stars image

But maybe some underlying color makes them look slightly red ish.

Someone with more insights into those details can most likely chime in on that.

andrea tasselli avatar
Enrique Ojeda:
Thanks for taking the time to reply. I stretch my RGB, L, and Ha master. Then I generate my LRGB. After that, I remove the stars and then add the Ha to the starless image. I also tried the same thing but without adding the L. Since I have my RGB_Ha and I add the stars from RGB, then I add the L master to my RGB_Ha. I use Pixel Math to add the stars back to my starless. In both cases, I have this problem. I don't know if it's because of the amount of Ha around the blue stars or if I'm just doing things wrong🙃. Thanks. CS!

It depends on whether you screen the stars, use SXT or SN2 and how you add the stars back using pixelmath. Beside that I think the way you add Ha to R is questionable, same as adding Ha to B to mimic Hb.
Peter Hannah avatar

I think we need a little more detail in order to be of help.

For example, when combining your Ha are you doing continuum subtraction first?

How are you combining your Lum with the RGB - are you using ImageBlend, or LRGBCombination, or something else?

And when you use PixelMath to recombine the stars, are you doing a straight addition or a re-screen? (assuming you unscreened when removing them)?

It might be worth trying one or two different ways to combine, such as NBRGBCombination and compare results.

Well Written Helpful Insightful Respectful Engaging Supportive
Enrique Ojeda avatar

Christian Bennich ¡ Jan 9, 2026, 05:42 AM

I think, when you “screen” the stars back, they are not “blended” in and would maintain their looks from the stars image

But maybe some underlying color makes them look slightly red ish.

Someone with more insights into those details can most likely chime in on that.

Thanks a lot Christian.

Enrique Ojeda avatar

Christian Bennich ¡ Jan 9, 2026, 05:39 AM

I assume you extract stars with starxterminator?

Personally, I prefer using Screenstars from https://cosmicphotons.com to reapply stars.

Arguably it’s “just” pixelmath - but it works for me.

Interesting. I use StarXterminator. I'll try the script you mentioned. Thanks! CS!

Enrique Ojeda avatar

andrea tasselli ¡ Jan 9, 2026, 07:44 AM

It depends on whether you screen the stars, use SXT or SN2 and how you add the stars back using pixelmath. Beside that I think the way you add Ha to R is questionable, same as adding Ha to B to mimic Hb.

Thanks, Andrea. I'll look online for more processing techniques. The strange thing is that this doesn't happen with other images, and I'm using the same workflow I learned on YouTube. I'll try other methods... maybe it's the object I want to process, maybe it's complicated (IC2118) and requires more skill, I really don't know =). CS!

Enrique Ojeda avatar

Peter Hannah ¡ Jan 9, 2026, 09:24 AM

I think we need a little more detail in order to be of help.

For example, when combining your Ha are you doing continuum subtraction first?

How are you combining your Lum with the RGB - are you using ImageBlend, or LRGBCombination, or something else?

And when you use PixelMath to recombine the stars, are you doing a straight addition or a re-screen? (assuming you unscreened when removing them)?

It might be worth trying one or two different ways to combine, such as NBRGBCombination and compare results.

Thanks Peter.

“For example, when combining your Ha are you doing continuum subtraction first?”

I simply add the starless from Ha to my RGB starless using the formula I mention in PixelMath.

“How are you combining your Lum with the RGB - are you using ImageBlend, or LRGBCombination, or something else?”

LRGBCombination

“And when you use PixelMath to recombine the stars, are you doing a straight addition or a re-screen? (assuming you unscreened when removing them)?”

I simply add my stars to my RGB_Ha starless.

I'll investigate more techniques to see if I can find the problem. Thank you very much. CS!

andrea tasselli avatar
Enrique Ojeda:
I simply add my stars to my RGB_Ha starless


If you used SXT with "unscreen" tab selected (as it should) then that's the reason why. The pixelmath formula is ~((~starless)*(~stars))
Enrique Ojeda avatar

andrea tasselli ¡ Jan 9, 2026, 02:56 PM

If you used SXT with "unscreen" tab selected (as it should) then that's the reason why. The pixelmath formula is ~((~starless)*(~stars))

Hi! That option isn't selected by default, and I always run SXT without enabling it. Do you suggest enabling it before applying SXT? Thanks! CS!

andrea tasselli avatar
Yes, Very much so.
Stu Todd avatar

Enrique Ojeda ¡ Jan 9, 2026, 04:30 AM

Hi! I would greatly appreciate your help. When I'm processing my LRGB_Ha image without stars, and then I want to add stars, I see that the blue stars change color slightly; they turn violet with a red center. This only happens when the Ha is added to my LRGB. In my LRGB, they appear perfectly blue.

Hi Enrique,

I think the issue arises because you are adding a red channel (Ha) to an image with red already in it.

When you stretch your RGB and Ha data, aim for a 50% background count, then when combined they don’t swamp eachother. You could also try ImageBlend, varying the Ha to suit.

Helpful Concise
Enrique Ojeda avatar

Stu Todd ¡ Jan 10, 2026, 12:47 AM

Enrique Ojeda ¡ Jan 9, 2026, 04:30 AM

Hi! I would greatly appreciate your help. When I'm processing my LRGB_Ha image without stars, and then I want to add stars, I see that the blue stars change color slightly; they turn violet with a red center. This only happens when the Ha is added to my LRGB. In my LRGB, they appear perfectly blue.

Hi Enrique,

I think the issue arises because you are adding a red channel (Ha) to an image with red already in it.

When you stretch your RGB and Ha data, aim for a 50% background count, then when combined they don’t swamp eachother. You could also try ImageBlend, varying the Ha to suit.

Thank you very much Stu. I'll look into that option. Cheers! CS!

Well Written Respectful
Enrique Ojeda avatar

Enrique Ojeda ¡ Jan 9, 2026, 04:30 AM

Hi! I would greatly appreciate your help. When I'm processing my LRGB_Ha image without stars, and then I want to add stars, I see that the blue stars change color slightly; they turn violet with a red center. This only happens when the Ha is added to my LRGB. In my LRGB, they appear perfectly blue. This is the PixelMath formula I'm using to add Ha in PixInsight:

R=max($T[0], 1.2*Ha)

G=$T[1]

B=iif($T[0]<Ha, $T[2] + 0.06*Ha, $T[2])

I would greatly appreciate any suggestions please.

Thank you.

CS!

Left: stars

Right: starless

📷 image.pngimage.png

Hi! I wanted to let you know that I found the error in my processing that was causing problems with the color of my blue stars when adding the stars to my LRGB_Ha image (I stretch and process the stars separately). I used the PI Combine Images script and the problem was solved. Before, I was adding the stars to my LRGB HA using PixelMath directly, and something seemed to be going wrong. This script fixed it. Thank you so much for taking the time to give me your suggestions; I've also applied some of them to my workflow. CS!

📷 image.pngimage.png

Well Written Helpful Respectful Engaging
Related discussions
Hoping for someone to explain some Pixelmath
Looking for some pixel math help. Mostly to just understand what I’m doing. I see what it does, and I understand the process as a whole, but just don’t know what each expression is doing. For reference I’m getting these from this website: https://www...
Explains PixelMath fundamentals to understand color channel manipulation formulas.
Aug 30, 2025