Astrofriend's homepage
Share: Twitter Reddit Facebook Gmail Gmail Email
Search Astrofriend's homepage:

Valid CSS!

All pages shall now have been validated

Info Cookies (Kakor) / GDPR


Advertisement /

Twitter @AstrofriendLars

Follow Astrofriend

Astronomy Project News

Advertisement / Annons:

Gimp for astrophotography


I take no responsibility or liability for what are written here, you use the information at your own risk!

Set levels of rgb image:

The information in a 16 and especially 32 bit image have a huge range, much more than the monitor or a printed copy can deliver. But this huge range is important because when we process the image we expand the contrast locale and that get demands to have very very small steps in the level to look good. Example: when you increase the weak signal in a nebula. The image range is the input levels and what's deliver out to the monitor or a jpg image file is the output. Maybe Gimp can work with more than the normal 8 bit rgb as output. The levels are expressed in a 0 to 100 scale for both input and output levels.


Levels, Gimp

Now the image is in rgb mode and you see the three red, green and blue layers to the right. Now we shall set the input levels of the three color channels. It was this step that was very difficult for me to do when I used the Tiff 32 bit format. Now with Fits format the levels are almost correct already from the beginning.

Adjust the level for each color channel:

Adjust the red level, Gimp

Adjusting the red input level. The red layer has been activated to the right, it's activated when the bar is black. If it's not activated you can not do any change to it. Also the 'eye' is enabled which means it is visible on the screen. Choose levels from Colors menu.

Red level menu:

Red level menu, Gimp

Select the red channel from the input level menu.

Set the red input Level:

Set the red level, Gimp

There are three small triangles, min, middle and max signal. Note how I set the left one, the min signal just to the left of the big bump in the histogram. The 'bump' correspond to the background in an astro image. Below that is no real signal, sometimes I cut these low levels already in the pre process with AstroImageJ. The max signal to the right I have chosen to be where the signal is just below oversaturated (later I have found it better to leave it at the most right position). After this only real signal is included in the input levels. The middle level is set to 2.2, this is the gamma and 2.2 is the standard for monitors and sRGB signals. It increase the low levels more than the higher levels. Maybe not perfect with exactly 2.2 in this case with astrophotos, but a good starting point.

You see two 'bumbs' to the right in the histogram because I didn't crop out the usable area. At the edges there always bad data because of the stacking process. It's better to do this crop before adjusting the levels.

Adjust level of green and blue channel:

Redo this input levels adjustment for the green and blue color also. If the three images was well balanced before it should look something like this. All layers are now activated and set to be visible.

Do the level adjust one or more times, now when the rgb color are leveled you can adjust them with 'Value' instead which take all three colors at the same time. Have all three layers visible, the 'eye' to the right. Move the left triangle closer to the 'bump' but leave some headroom. The middle triangle that control the gamma, slide it closer to the bump. Do this in small steps and click 'OK' and start it once more until you feel it looks good.

You can also do it in the reverse order, start with 'Values' and later fine adjust with separate colors.

Adjusting the output level:

Open the level setting once more. Now we shall adjust the output levels. In most cases it's to prefer to use the Curves. Click on that bar at bottom.

Adjusting the curves:

We see in the image that the back ground is very light, that's because I set the min input level a bit left of the bump in the histogram. If it differ much you can go back and fine adjust the input level (move the min handle more to the right). Now when it's expanded it's more clearly seen. Grab the left lower point of the white line. This white line include all three colors, have them activated in the layers too. Now it's more like a ordinary photo editing, coarse adjust it with the Value setting, after that fine adjust the colors relative each other from red, green and blue Curve adjustment.

Later when I'm more used with Gimp I maybe find a better method, and it of course differ in the small details dependent of what kind of object you have.

When color balance, have all three layers activated and the 'eye' enabled.

Set the black level:

Something like this as a first attempt, if you need more control points, in most cases an S-curve is better. Just click on the line and more will be added. You see the Globular Cluster M13 at right which was my sample image.

Save and Export the image:

Save the Gimp image and Export it

Save the image in Gimp's own XCF format, you can open it later with all information left to continue. Also export a jpg file or what format you prefer.

Messier 13 sample image:

Messier 13 sample image, Gimp

A first very easy example how to use Gimp. Of course you can do a lot more with the advanced functions. Still to learn for me how to use its capabilities.

Have a good luck with your image processing, maybe I come back later with some examples when I learned how to use it.

Go Back to content

Go Back
Next: Align r, g, b layers

Advertisement / Annons: