Skip to Content

Deep-Sky Processing

This astrophotography tutorial is handy for those who wish to process their images in Adobe Photoshop.  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.

Download an unprocessed astrophotography image to practice your image processing:

Astrophotography Tutorial

This file is a great place to start honing your deep-sky processing skills.  You may want to watch the video version of this tutorial on my YouTube channel instead:

 

 

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 most deep-sky objects.

Astrophotography Tutorial – Processing the Lagoon Nebula

Astrophotography TutorialIn this astrophotography tutorial, I will walk you through the basics of stacking your light and darks frames to increase the signal-to-noise ratio in your deep-sky astrophotography images using Deep Sky Stacker. I then bring the image into Adobe Photoshop for final adjustments and Processing. The image example is of Messier 8 – The Lagoon Nebula, an object I photographed in June of 2013 with my Explore Scientific ED80 telescope, and Canon Xsi.

For details on the exact equipment I use for this process, you can hop over the equipment page for a breakdown of everything I own. The list of software I use for this process is BackyardEOS, Adobe Bridge, Deep Sky Stacker and Adobe Photoshop.  I also use the Gradient Xterminator and Astronomy Tools Action Set Plugins.  Please see the resource page for more information about these useful astronomy applications.

 

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. For this astrophotography tutorial, you will see my best 17 frames I photographed of the Lagoon Nebula back in June of 2013. The exposures are 5 minutes each @ ISO 1600. The software I use to view and organize my raw photo files is Adobe Bridge.

 

Viewing Raw Files in 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.

If you do not own a copy of Deep Sky Stacker, you can download a copy for free from the link below:

Deep Sky Stacker

Stacking Frames in Deep Sky Stacker


After opening Deep Sky Stacker, select “Open Picture Files”, and locate all your folder of light frames, which in my case was 17 – 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.

More Info: Deep Sky Stackers Settings for Astrophotography

 

Stacking light and dark frames

 

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.

 

The stacking steps dialog box

 

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.

 

Your 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 files we are interested in, and 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.

 

A final 32-bit .tif file is created

 

Processing in Adobe Photoshop

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 there own taste, especially when it comes to photography!  Add science 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 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!

 

Astrophotography Tutorial – Image Processing

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!

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.

 

Cropping an astrophoto

 

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:

 

Gradient removal of an astro-photo

 

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!

 

using the levels adjustment in Photoshop

 

Step 4: Converting to a 16-Bit Image

We have reached the limit to where we can take this image in it’s 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!

 

Astrophotography Tutorial - Curves

 

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!

Astronomy Tools Action Set

 

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 grey 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.

 

Using the Color Sampler Tool

 

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:

RGB Values in Photoshop

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 grey 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.

 

 

Processing Tip

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

 

Trevor Jones on Twitter

You can find a useful monitor calibration diagram from Astrosurf Here:

Monitor Calibration Chart for Astrophotography

 

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!

 

Wide field astrophotography

 

If you enjoyed this astrophotography tutorial, 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!