Astrophotography Image Processing in Photoshop [Step by Step]
Below you’ll find my deep sky astrophotography image processing workflow. This tutorial is a handy reference for those who wish to process deep sky images captured with a DSLR and telescope.
I believe that is important to develop a workflow that both compliments your imaging style and is an enjoyable process. My advice is to find a system that works and stick with it. You can always come back to your raw data and try the new techniques you have learned.
The image used in this tutorial is of the Lagoon Nebula taken using a Canon Rebel DSLR through an Explore Scientific ED80 telescope.
There are a number of choices when it comes to image processing, but my personal favorite route to take is Adobe Photoshop. This application is well equipped with all of the tools and actions needed to produce an incredible deep sky astrophoto.
I use some additional plugins and filters that help me process my astrophotography images, including the Astronomy Tools Action Set. I will outline the order I run these actions in below.
Astrophotography Image Processing
The following video covers some techniques to consider when using Deep Sky Stacker and Photoshop. In the video, I take the unprocessed RAW image file through a series of adjustments and actions to bring out the full color and beauty of the Rosette Nebula.
If you would like to practice image processing on a pre-stacked image, you can download my Autosave.tif file below. It is a photo of the Rosette Nebula with over 2 hours of total exposure. It is a large 32 bit TIFF file like the one used in the processing tutorial on this page.
My Step by Step Guide
If you prefer a step-by-step guide to my techniques, you can follow along with the astrophotography tutorial on the Lagoon Nebula below. The techniques used in the video can be applied to many deep-sky objects but will work best on wide-field nebulae like the one in this tutorial.
The process involves stacking multiple images of your deep sky object together and processing the high resolution .TIF file created by Deep Sky Stacker. The more exposures you have captured on your target, the better your signal-to-noise ratio be.
Those of us who shoot in a light polluted city backyard can compensate for a washed out sky by collecting hours and hours worth of data. Support files such as darks, flats and bias frames also play a large role in correcting the data.
Our Subject: The Lagoon Nebula
To start, I’ll cover the basics of stacking your light and dark frames in Deep Sky Stacker to increase the signal-to-noise ratio of your final image.
Then, we can bring the stacked image into Adobe Photoshop for further image processing. Below is a list of the software needed to follow along with the tutorial to the end.
Software Used in this Tutorial:
- Adobe Bridge
- Adobe Photoshop
- Astronomy Tools Action Set
- Gradient Xterminator
Again, the complete list of software I use for astronomy can be found on the Resources page in the main menu.
Assessing Your Data
To start, you will need some good data on your desired deep-sky object. By good data, I mean as much time of total exposure as you are able to acquire with your imaging equipment. The exposures should be long enough to pick up details of the nebulosity, have sharp stars, and centered in the middle of your frame.
In this example, you will see the best 17 frames I photographed of the Lagoon Nebula back in June of 2013. The exposures were captured using a Canon DSLR camera, and are 5 minutes each @ ISO 1600. The software I use to view and organize my raw photo files is Adobe Bridge.
Subtracting Dark Frames
To help create a smooth image with an adequate signal-to-noise ratio, I took dark frames of the same exposure length and temperature, with the lens cap on. This is a very important step in my stacking process, that does a great job of removing much of the noise in my images taken using such a high ISO.
Dark frames must be the same length as your “light” frames (the actual photos of the object), and they also must be the same temperature. I usually do this while I am tearing down my imaging equipment at the end of the night. I have seen the best results when I take 10-15 dark frames.
Keep those RAW files organized!
It is important to keep all of your RAW files in order. With so much time and effort put into collecting good data, it would be a shame to lose any frames due to being unorganized. It also makes the stacking process much faster and easier when you have taken the time to create separate folders and name your work.
Stacking Images in Deep Sky Stacker
I use Deep Sky Stacker to register (align) and stack my astrophotos to improve the signal to noise ratio. The stacking process can also take place in Photoshop, but I prefer to use DSS based on my previous experiences.
If you don’t know how to use Deep Sky Stacker to register your images, have a look at the Deep Sky Stacker tutorial I have put together. This is an essential first step for any deep sky image processing workflow. DSS is available for free download on their website.
After opening DeepSkyStacker, select “Open Picture Files”, and locate all your folder of light frames, which in my case was 17 X 5-minute subs of the Lagoon nebula. Once they have populated the area in the bottom half of the screen, you can then select “dark files…” and open up your 10-15 dark frames, and they will be added to your list of stacked images as well.
Then, click “Check all”, followed by “Register checked pictures”, and you should see the Register Settings dialog box appear on your screen like the one below. Make sure that the box next to Stack after registering is checked off.
You can see your total number of light, dark, flat and bias frames listed above the stacking list. In this case, I have 17 light frames and 15 dark frames. I have not used any bias or flat frames for this project. My settings in the Action Tab are to Select the best 75% pictures and stack them. Hit OK in the dialog box, which brings up the Stacking Steps dialog box.
This will show you the estimated total exposure time, which for me is 1 hour and 25 minutes. You can review the details of my stacking steps in the graphic below.
After hitting OK, you may want to go grab a coffee. The process of registering and stacking your photos can take up 10 minutes in my experience.
Stacked Master File
Once finished, Deep Sky Stacker will create a 32-bit stacked master file, and auto save it to the directory containing your light frames. In fact, the file it produces is by default named Autosave.tif. This is the file we will be opening up in Adobe Photoshop for further processing. A preview of your registered and stacked image will display in Deep Sky Stacker when the process is complete.
The details of your final image are displayed in the top left corner of the screen including ISO, Exposure and the location of the created .tif file on your computer. My image ended up being exactly 1 hour of total exposure.
I do not make any adjustments to the image within DSS itself, everything from this point on happens in Photoshop.
Processing the RGB (color) image
Now the real fun begins as we find our Autosave.tif file in our light frame folder, and open it up in Photoshop. It will look very similar the preview you just saw in DSS. There is much to be done to this image to bring out the true beauty of this deep-sky treasure.
Everyone has their own taste, especially when it comes to photography! Add an element of scientific data to the mix, and you are bound to have several opinions about the way our glorious night sky should be portrayed. I prefer my images to have a more natural look, with a dark sky and lots of contrast.
I prefer my images to have a more natural look, with a dark sky and lots of contrast. I find many astrophotography images to be either too dull or too over-the-top. Finding a balance between the two can have you spending hours processing a single image.
What might look good on Friday, looks like a complete mess by Sunday. Rest assured, it’s part of the process. Every astrophotographer does the same thing. Just have fun!
Image Processing in Photoshop: Step by Step
Now on to the fun part of this astrophotography tutorial, the processing. Using the 9 steps below, I will show you how to turn your dull original file into a colorful cosmic work of art.
Before we get started, I should note that the order of the processing actions you take can have a substantial effect on your results. The image processing reference graphic below outlines the order I take when using Adobe Photoshop.
Step 1: Crop
The very first task I must perform to each of my images is a slight crop. I do this to trim away the edges of the image where any stacking and registering artifacts may have occurred. This is why framing your target in the center of the image is so important, you do not want to be cutting into any of your precious data. The crop tool in Photoshop handles this tasks with ease. Drag the bounding box to your desired size, and hit enter to trim away the very edges of your frame.
Step 2: Removing the Gradient
There are several ways to accomplish this task, and every astrophotographer will tell you their way is the best. I prefer the ease and simplicity of a handy Photoshop plugin known as Gradient Xterminator. Once installed, this life-saver performs all of the in-between steps for you with the click of a mouse. First, I select the areas of the frame affected by vignetting with the lasso tool, and then I run the RC-Astro Gradient Xterminator plugin with the settings seen below:
Some experimentation with the exact areas that have the vignetting issues may have to take place. Notice that I did not select the Balance background color option. Hit OK when you are ready to get rid of those nasty dark edges of your photo. I will say, that this example has little to no vignetting or gradient issues because this photo was taken under dark skies. Any image I take from my backyard suffers from heavy vignetting and gradient issues, which take some time to get rid of.
Step 3: Levels Adjustment
This where we start to separate the gorgeous pink nebulosity from the sea of stars and dark sky. You can find the levels adjustment tool under Image Adjustments > Levels. The initial levels adjustment should look like the histogram below, bringing the left-hand slider just to the edge of the data. You will also do the same with the right-hand slider, in towards the bright details of the image. Bringing the sliders in passed the data will clip the image data, resulting in a loss of image information. A big no-no!
Step 4: Converting to a 16-Bit Image
We have reached the limit to where we can take this image in its current state. We will need to convert this .tif file into a 16-bit image to make further adjustments. You can accomplish this by selecting Image > Mode > 16/Bits Channel. When the HDR Toning dialogue box appears, make sure you change the Method from the default Local Adaptation to Exposure and Gamma. You may want to experiment with the Local Adaptation method later, as it can produce some interesting results as well. Once you have selected the Exposure and Gamma method, press OK. You will not see any noticeable changes to the image, but it is now in 16-bit mode, and you will have access to a number of new editing options.
Step 5: Curves Adjustment
This is the single biggest adjustment you will make to your image. It gives you a preview to what you can expect your final image to look like. The Curves adjustment panel is found in the menu under Image > Adjustments > Curves. My initial curves adjustment usually looks similar to the screenshot below. This is a balance between detail and noise, you don’t want to blow the image out, or leave any extra details on the table!
I typically perform a few more slight curves adjustments, being careful to not blow out any bright details of the nebulosity. I find the best way to go about this, is to experiment with different values, and use Photoshop’s history state feature to go back and start again. Alternatively, you can make these curve adjustments on a New Adjustment Layer, and turn these layers off and on to see the changes. You will find the New Adjustment Layer option in the Layers menu.
Step 6: Astronomy Tools Action Set – Phase 1
Enhance DSO and Reduce Stars
That’s right! Another plugin for Photoshop to make my life easier, and processing more enjoyable. This action set makes several astrophotography-based actions much simpler by offering a list of common tasks in the Actions tab, and running the multiple-step processes with the press of a play button! The first action I like to run at this stage is the Local Contrast Enhancement action. This action runs rather quickly, but the one I run next does not – it can take up to 5 minutes on my machine. This one is called the Enhance DSO and Reduce Stars action. Now if you’ll excuse me, I’m going to Tim Hortons for coffee and Timbits. When I get back… more actions!
Step 7: Setting the “Black Point”
After the latest action has run its course, I like to increase the Saturation of the image and make another Curves Adjustment. This tames the now gray background sky back to a more natural black, while preserving the details of the nebula.
A tip for achieving a neutral sky background is to use Photoshop’s Color Sampler Tool. It is located in the Eye-dropper drop-down panel on the toolbar. Make sure you have the Info tab open in Photoshop as well (located in Window > Info). Using the Color Sampler Tool, with the Sample Size set to 5 by 5 average, select a neutral area of the image that does not contain any stars or nebulosity. Depending on what you have photographed, that may be tricky.
Once you have placed the pointer onto a neutral sky area, you will see the RGB values appear in the info dialogue box. In my example the values were:
R:46 G:41 B:41
By adjusting the individual channels in the Levels panel, we can match each value to an even amount. For example 30, 30, 30, for a dark gray sky background. It is useful to add 1 or 2 more Color Sampler points on your image to get a better overall idea of which channels are overly present in your image.
My image of the Lagoon nebula was very red, and by stepping down that channel, I was able to produce a more natural look for the subject, and the the starry sky around it. You may find that you prefer your sky background to have a higher value in a certain channel. Often I will purposely have a higher value in the blue channel.
Make sure your computer monitor is calibrated accurately to display your astrophotography images as the rest of the world will be seeing them on their various devices. Monitors can vary greatly, both the one you are processing on and the ones that other people are viewing your images on. Once you view images on a well-calibrated monitor, it is easy to spot the images processed on monitors that were either way too dark, or too bright!
I experienced this issue for years, simply because I processed my images on a horrible monitor that displayed everything WAY darker and contrasty than the average monitor. I know that other astrophotographers have experienced it as well, just look at this tweet from @chris_grimmer
You can find a useful monitor calibration diagram from Astrosurf Here:
Step 8: Astronomy Tools Action Set – Phase 2
Increase Star Color
I always run the Increase Star Color action on my photos, as it brings out the natural color of the stars rather than having them all appear bland and pale. I would not run this action more than once, as it may start to create some oddities within your image. Hop back and forth between history states to see the subtle differences.
Make Stars Smaller
This is just a personal preference of mine. I will run it twice if it makes sense for the image. You really need to check all areas of your frame to make sure that the stars are not turning into strange pixels that do not look natural and can ruin your image.
Space Noise Reduction
We already reduced the noise by a fair amount by subtracting the dark frames form the image. This post-processing method of reducing noise can help smooth out the image, at the expense of some sharpness. To each his own!
Step 9: Finishing Touches
This is where your own style and presentation preferences come into play. It is helpful to find a version of the deep-sky object you have photographed online, and model your processing after that. From the intensity of the color, to the darkness of the background sky, everyone has their own taste about how these wonders of the night sky should be displayed. All I can say is have fun with it, develop your own style. When you get to a point with your image where you say “anything else would make it worse”, you know you have finished your masterpiece!
If you enjoyed this astrophotography image processing walkthrough, or have any questions about this process, please feel free to follow AstroBackyard on Facebook and add a comment there. I wish you all the best in your future deep-sky astrophotography endeavors!