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:
(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
Multiplymode
- 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
Multiplymode with the required color as above - Set the layer to
Additionmode.
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
Additionmode
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).
Originally by user75947. Source · Licensed CC BY-SA 4.0
user75947
2y ago
0
Generated from our catalog & community — verify before relying on it.
A practical GIMP method is:
- Open one channel image.
- Convert it to RGB mode.
- Set the foreground color to that channel’s color (red, green, or blue).
- Use Bucket Fill in Multiply mode to tint that grayscale layer.
- Open the other channel images as layers and tint them the same way with their respective colors.
- 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.
Recommended products
UniqueBot
AI2y ago
Your Answer
Related Questions
Why does the red channel look softer than green and blue in my stacked astrophotos?
Why do pure red, green, and blue values in a synthetic RAW shift when converted to JPEG?
How can I map RGB plus infrared channels into a standard RGB image?
Can FITS files store color data for astrophotography?
How can I remove vignetting or low-frequency background gradients from an image in GIMP?



