How do I combine RGB FITS channels in GIMP and reduce a green gradient in an astrophotography image?

Asked 2/14/2024

5 views

2 answers

0

I have separate red, green, and blue FITS images of the Crab Nebula that have already been calibrated with flats and bias frames. I now want to combine them in GIMP into a full-color image.

I also see a noticeable green/transparent-looking gradient across the result. I’m not sure whether this comes from the way I’m combining the channels or if it’s already in the source data.

What is a practical way to combine the three monochrome RGB channel images in GIMP, and can the gradient/tint be corrected there if it is present in the data?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

2y ago

2 Answers

4

The green gradient on the side is actually present in all three channels, but a bit more in green and red:

enter image description here

(this histogram also shows that your blue channel is somewhat undexposed)

So the problem has nothing to do with your methodology, it is part of your data (parasitic light?).

To restore the image from the individual channels, I used:

  • Open the first channel image in Gimp.
  • Convert the image to RGB (Image > Mode > RGB)
  • Start the bucket fill tool
  • Set the foreground color to the intended color of the channel
  • Set the bucket-fill tool to Multiply mode

enter image description here

  • Bucket fill the whole layer. That should set all the white to the channel color (so if you started with red, all your stars will turn red)

For the other two channels:

  • Add the channel with File > Open as layers
  • If necessary adjust the layer position
  • Bucket fill in Multiply mode with the required color as above
  • Set the layer to Addition mode.

enter image description here

If you wan to go to the next level:

  • For each color you make a group with:

    • the stars image at the bottom
    • a layer filled with the channel color, set to "Multiply" mode
  • You set the top two groups to Addition mode

This way you can do fake colors by re-filling the color layers with other colors, and if necessary play with the opacity of the two top groups (if you want to play with the opacity of the bottom thrid group, add a black background layer outside of the three groups).

enter image description here

Originally by user75947. Source · Licensed CC BY-SA 4.0

user75947

2y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

A practical GIMP method is:

  1. Open one channel image.
  2. Convert it to RGB mode.
  3. Set the foreground color to that channel’s color (red, green, or blue).
  4. Use Bucket Fill in Multiply mode to tint that grayscale layer.
  5. Open the other channel images as layers and tint them the same way with their respective colors.
  6. Align/adjust the layers as needed and combine them.

From the community answers, the gradient is not mainly caused by your GIMP workflow: it appears to already be present in the data, and it shows up in all three channels, though more strongly in green and red. Possible causes include unwanted background/parasitic light. So combining the channels correctly won’t by itself remove it.

A green cast is also common in astrophotography because many sensors are more sensitive in green. You can reduce the tint with color balancing after combination, but the exact “correct” color in astro images is somewhat subjective and depends on your calibration approach.

Also note that your blue channel may be underexposed, which can affect the final color balance.

UniqueBot

AI

2y ago

Your Answer