Tag Archives: noise

Stacking: the Overloaded Word That Needs Explanation

The current rage of “stacked Milky Way” (or night sky) captures is quite different from the star trail or timestacks style of captures. Huh? The words stack and stacking are overloaded with many different meanings. Let’s see if we can add some precision and clarification.

Here are some of the variations possible:

  • Auto Blend Layers with Stacking: Used for macro/focus stacking, HDR, and generic image blending – NOT for astro images!
  • Lighten Mode Stacking: Creating Star Trails!
  • Statistics Mode Blending (Stacking): Can perform the same operation as Lighten Mode Stacking when the option “Maximum” is used, however Statistics are heavy weight and more complicated to do in our opinion.
  • Align and Stack: Deep sky astrophotography using several images taken one after another as quickly as possible. Photoshop doesn’t do this well, but we describe how in the next section. Align is the distinguishing word here.
  • Tracked Stacked Images: For still astrophotography images with less noise and greater detail. A device is required that tracks the sky rotation – the word tracked is the key here.

    Adobe Lightroom and Adobe Bridge “Stacking”

  • Group into Stack:  Not stacking at all! It really just means “create a group”.

The above is NOT an exhaustive list of the kinds of stacking you may hear about!

Stacking Types Explained

Group into Stack

Let’s start with the easy one: Stacking may mean add to group. In Lightroom and Adobe Bridge you can pick several photos and the options  Stacking -> Group into Stack. Or pick several photos and either Photo Merge to HDR or Panorama with the “Create Stack” option checked. In this context, Stacking and Stack just means group.  Unfortunately a photo can only appear in one stack, and you cannot stack photos from different folders together.

Why would you want a photo to appear in two (or more) stacks groups? Here is an example where I used a single top shot and created two different panoramas.

Panoramas 1 and 2 were both created using image 3 (608095.NEF) but when panorama 2 was created, image 3 was removed from the stack (group) for 1 and added to the stack (group) with 2. Furthermore, you can see that the panorama and the two photos used to create it were all added into the group (notice the last image says 3 of 3).

Blend Layers using Lighten Mode

Stacking may mean blend photos in lighten or darken blend mode – examples are star trails and timestacks. In this usage, the lightest (or darkest) of all the pixels in each image is selected. This is the kind of stacking that AdvancedStacker Plus does. Below is an example of taking several images that we collected over time with long delays between each exposure causing the “dotted” appearance of the star trail.

Several layers of images taken at intervals all set to blend mode “Lighten”

Align and Blend Stacking

Stacking can ALSO mean ALIGN and blend images with median, mean (aka average) or more sophisticated algorithms. Indeed astroimagers have been doing this style of blending for years using techniques that involve “star registration” (aligning stars with stars) and some pretty fancy stacking algorithms like Alpha-Kappa Median Clipping and Entropy Weighted Average. The key point here is the alignment. Indeed, here at StarCircleAcademy, we’ve explained how you can brighten and reduce noise in your foreground using simple astrophotography processing techniques.  See below for how to accomplish Align and Blend Stacking in Photoshop, and plenty of warnings about why this method is very likely to FAIL using Photoshop as the tool.

You may also see references to tracked, stacked images. These are the same as “align and blend” just described, except that to capture the image, the camera is guided by an external device (or by some fancy internal hardware), to allow longer exposures of the stars without getting unintentional trailing (smears) of stars.

The takeaway is that not all stacking is created equal. You need to know the context to understand what is meant by the word: stacking.

Focus Stacking / Auto Blend Layers

In Photoshop there is Edit -> Auto-Blend Layers -> Stack Images this is yet another kind of stacking (focus stacking) and despite the wording is NOT the kind of operation needed to ALIGN and Blend astro images. If you don’t believe us, give it a try and you’ll see it will do very weird things with your layers. Below are the same images as earlier. Note the bizarre masks it created to do the blending.

Edit -> Auto-Blend Layers -> Stack Images makes a mess. We told you so! Click to see a bigger image.


Aligned, Stacked Starry Landscape Images

While it would probably be better to make this a separate article in itself, we found it painful enough that we don’t recommend bothering – and yet we proceed to explain HOW to do it anyway!

If you want the cleanest possible images, you’ll – of course – want to reduce the overall noise  and bring out details by using many images instead of one. This approach is not all puppies and kittens. Here are some of the pitfalls:

  1. The direction of sky movement relative to the ground has a significant influence on the quality of the result (as well as the order chosen for alignment). In general, setting constellations are better than rising ones.
  2. Most of the existing tutorials will assume that you have a recent (CC) version of Photoshop with statistics and an an “Auto Align” that properly manages masked regions.
  3. Some of the tutorials we’ve observed are more cumbersome than they need be. There are plenty of hotkeys and mouse shortcuts to make the process go pretty quickly.
  4. More than 10 or so images can become quite demanding on machine resources.
  5. The complexity of your foreground will also affect the outcome. A clean, crisp separation between sky and land is preferable. Trees, poles, wires, and other things that extend through the sky are problematic.
  6. Lens distortion can also adversely affect the outcome.

Aligned Stacking Procedure

  1. Load all the photos as layers in Photoshop.
  2. Heal out airplane and satellite trails from each layer.
  3. Select all the layers and add to a group named “Sky
  4. Right click the Sky Group and duplicate the whole group as “Foreground”
  5. Select all the layers in Foreground.  Use Layer -> Smart Object -> Convert to Smart Object.
  6. Select Layer -> Smart Object -> Stack Mode -> Mean
  7. Duplicate Mean using Ctl-Alt-Shift-E (Command-Option-Shift-E on MAC). Label the newly created layer “Mean” and turn it off.
  8. Select all layers in Sky. Set blend mode to “Lighten” and observe the direction of star movement against the ground.
  9. Be sure the image with stars nearest the ground is at the BOTTOM of the stack. The bottom layer will be your base for alignment. You can drag layers around, or Layer -> Arrange -> Reverse may do the trick.
  10. Create a mask keeping as much of the sky as is easy to do but that DOESN’T include any ground  or fixed location objects. IMPORTANT: Be sure the mask doesn’t have holes in it, including at the bottom corners. Click the layer mask, hold down the Alt (Option) key and drag the mask to the next sky layer. Repeat until all sky images are masked with the same mask.
  11. Select the bottom layer and lock it  (Layers -> Lock Layers -> check Position -> Ok)
  12. Select all the sky layers.
  13. Chose Edit -> Auto Align Layers -> Auto
  14. When alignment is done, set blend mode for all sky layers to Darken. If stars are disappearing in the result image, that’s bad.
    1. If alignment is great everywhere, that is you have plenty of stars, you’re done. But it probably won’t be. So…
    2. Duplicate the current layers to a NEW document – call it whatever you want, but perhaps “Left looks good” makes sense.
    3. Open the history palette and click just above the “Align Layers” item (to restore to before the alignment was done). Lock the TOP layer (see item 11) and repeat steps 12-14.
    4. If a large portion of the image still has streaks in some quadrant, try undoing align, undoing the lock and re-aligning.
    5. If you’re still getting a significant amount of streaking you can also try Auto Align -> Reposition rather than auto.

      Q: Why do I have disappearing stars?
      A: The reason they are disappearing is because they are not aligned. In Darken mode, the darker sky “wins” out over the several stars. This COULD be a good thing in other situations, but not here!

      Q: If I went through the trouble of doing all this alignment, why is it still “off”?
      A: Photoshop isn’t optimized to align stars. Secondly, lens distortion makes a star move non-uniformly across the sensor. And third: stars at different declinations (celestial latitudes) travel at different speeds across the field. To eliminate streaks, the best solution is to track the sky.


  15. Take the aligned sky, delete all the layer masks. With all the aligned sky layers selected, create a smart Object.
  16. Do the same Stack Mode “Mean” trick for the sky smart object that you previously did for the foreground.
  17. The rest is pretty straight forward. Turn the foreground (mean) back on. Use a selection to reveal only the foreground and apply that to the Foreground Group.
  18. Adjust contrast, color balance, vibrance, etc. to your satisfaction.
  19. Save the kit and caboodle.

Does all this seem too complicated? Well, then perhaps you might consider using these tools instead. They do most of the hard work for you and they KNOW the difference between stars and foreground (usually because you help them know).

  • On a Mac: Starry Landscape Stacker – from the Mac App Store
  • On a PC: Sequator – do a Google Search to download it.

By the way there are many astro processing tools, like Deep Sky Stacker – but most/all of them expect that your images will have NO foreground or non-moving objects like wires in them.

Why Aim North?

Reaching for the Sky

Reaching for the Sky: 112 images, each f/4, ISO 800 for 60 seconds including a shot from twilight hour for the foreground Alabama Hills, Lone Pine, California

Want to capture Perseid meteors, the Milky Way, and star trails in an awesome location?

Join us for our>>> Field Event: Meteors, Milk Way in Alabama Hills <<<Sunday, August 12, 2018 (with an optional second night).  SORRY EVENT IS FULL

I live and travel in the Northern Hemisphere. In fact I have yet to travel south of the equator, so my apologies to those of you from the southern half of the planet for my obvious northern bias.  I believe those of you in the bottom half of the planet can just substitute the word South for North everywhere and everything should be correct.  I have added [parenthetical content for those who are in the southern hemisphere where that north/south swap doesn’t work]

The results obtained by shooting a long exposure at night depend quite a lot on which direction the camera is pointed. I favor long star exposures with a northern view for many reasons.

The Advantages of Shooting To the North

  1. Curvature of the star trails is strongest around the north star. Exposures of about 6 hours will appear to be full circles (24 hours of exposures are actually needed to make complete circles and that is not possible in one night except near the North Pole!).
  2. The moon will never intervene into the shot because the moon never passes through the northern sky.  [NOTE: those in the southern hemisphere still have to worry about a moon in their Southern shots]
  3. Cassiopeia and Ursa Major (the Big Dipper) are bright constellations that can always be found in the Northern Sky – so there is always some interesting sweep of stars possible. The region immediately around the North Star, however has dimmer stars which may only be captured through long exposures. [The southern hemisphere suffers for lack of many bright constellations near the southern celestial equator]
  4. With just a smidgen of star hopping skill it is easy to find the north star which, weather permitting, is always visible in the night sky.
  5. The moon sweeps east to west giving long shadows from the right or left of the subject. And when the moon is highest in the sky it can cast strong face light.
  6. The sun also never appears in the northern sky so it is safe to leave a camera running from before sundown to after sun up. Camera damage can result from a long exposure pointed at the sun.  [NOTE: those in the southern hemisphere still have to worry about a sun in their Southern shots]
  7. Since the moon cannot enter into a northern shot a photo can be made regardless of the moon’s phase and for as long as I choose. For shots toward the East, South or West it is important to know the moon phase and location during the hours of shooting to prevent problems from flare or washout. [NOTE: those in the southern hemisphere still have to worry about a moon in their Southern shots].
  8. The stars in the north move the slowest through the field of view which allows them to be brighter and reduces inter-exposure gaps in the trails.
  9. If I know my latitude I know how high to point the camera and be guaranteed to get a circle in the view.
  10. I do not need to know what constellations will be visible in the direction I will shoot.
  11. Two major meteor showers (the Perseids and Quadrantids) and 3 periodic meteor showers (the Giacobinids or Draconids, the Ursids and the Andromedids) are well placed in the northern sky.

The Disadvantages

There are a few detriments to pointing north, however:

  • Not every situation lends itself to a view from the south.
  • It takes a longer exposure to form a pleasing arc.
  • To get a circular arc, I must include at least 10 degrees or so above and below the North Star. The farther north you are, the higher in the sky the center of rotation. Those at more northerly latitudes will be more constrained in their choices.
  • The altitude (degrees above the horizon) of the north celestial pole may constrain the choice of lenses to very wide-angle – and may force you to use portrait mode. Or you can create your exposure by stitching together foreground and sky shots.

Another Northern View

Grand View [C_009613-686br]

Looking North from Grandview Campground, White Mountains, Bishop, California.  Shot at ISO 800, f/3.2 for 6 minutes each. Began at 10:11 PM and ended at 5:35 AM. That is 75 shots x 6 minutes = seven and a half hours. Grandview is at latitude 37 degrees North, so the center of the circular pattern is 37 degrees above the horizon.

What About OTHER Directions?

Southern View

Woosh

Woosh: 19 images. Each image: 6 minutes, ISO 800, f/3.2, Canon 5D Mark II, 16mm; Patriarch Grove, White Mountain, California

Eastern View

Valley of Stars (Remix) *Explored*

Western View

Stars and Stripes [5_065561-626li]
Granite Park - 53 Minutes (edited)

Notes

Contrary to popular belief, Polaris, the North Star, is not the brightest star in the sky. Sirius is the brightest star. The brightest objects in the night sky are the moon, and the planets Venus, Mars, Jupiter and Saturn. Also while Polaris is quite NEAR to the North Celestial Pole, it’s not exactly there so even Polaris will make a trail.

This is a reissue of an article originally written in October 11, 2010; Thoroughly revised and updated.

Star Trail Creation – Step By Step

Originally Published: November 19, 2012
Last Revised: March 3, 2017

I dredged this one up out of the archives. Many people ask me “how do you do those star trails, Steven.”  If you want a grand overview of the process, my Treatise on Star Trails is a good read. However here I reveal step-by-step how I create a star trail image from the first shots to the finished image. The method shown below is for creating simple (lighten mode) star trails. If you want to do some fancy effects, please take a look at our Advanced Stacker Plus.

Here we go.

South Side [C_009842-75br]

Photo 1: Quickly stacked image which is a composite of thirty-three 6-minute 500 ISO exposures and one 30 second, ISO 2000 exposure.

The above is my first quick attempt at creating a star trail, and following is summary of how I created it.

It starts with the test image and continues with the exposure set. For background on how to navigate the various shooting choices, see: the summary Stacker’s Checklist. The theory about selecting exposures may help.  And there is a two-part series that addresses the difficulties you may encounter. See Part 1 and Part 2. If you’re curious how I get the stars to form circles, this article will provide the information.

I usually start with a short (30 second or less), high ISO exposure to gauge several things: 1. How well framed my subject is, 2. How sharp the focus is, and 3. What I may need to adjust to control the sky-glow.

Photo 2: First, image: ISO 2000, f/2.8, 30 seconds.

After taking the first image, I realized two things: one is that the trucks passing were providing helpful light on my foreground – but not always illuminating the entire thing.  The other is that the exposure (ISO 2000, f/2.8, 30 seconds) was under exposed.  I needed to at least double the exposure to 1 minute. Let me stop for a moment. Those of you who don’t do much night photography are thinking “Whoa from 30 seconds to 1 minute is a huge difference.”  But no, it’s not. It’s only one f-stop. It is no different from changing a daylight exposure from 1/200 of a second to 1/100 of a second.

Starting with an exposure at 1 minute, 2000 ISO f/2.8 as a starting point I calculated an  ISO 500, 6 minute exposures at f/3.5. Here is how: A 1 minute exposure at ISO 2000 is equivalent to a 4 minute exposure at ISO 500 (500 is 1/4 of 2000).  Changing the aperture from f/2.8 to f/3.5 drops the light by about 33%, so I increased the exposure from 4 to 6 minutes.

I set my camera to record in RAW and my interval timer to take 5 minute, 59 second exposures every 6 minutes. I pulled out my reclining beach chair, a sleeping bag and slept while the camera clicked.  Below are a few of the shots. Note how the light changes from passing trucks!  You can also see the counter-clockwise rotation of the Milky Way. The last shot was taken as twilight approached is too bright to use because the sky is losing contrast and the light on the cliff is looking flat. I did not include that last shot in the stack.

Photo 3: Collage of some of the photos used in the stack.

I downloaded all the images from my card to my Incoming folder which is organized by date.  I used Digital Photo Professional to pull up the images, applied a bit of contrast enhancement, a slight exposure increase (1/3 of an f-stop), and a very slight noise control over the entire image. I exported in Landscape style which adds a slight saturation increase (Photoshop Saturation and Vividness) and modest sharpening. I cloned the recipe to all the photos and exported them into a “RedRockEast” folder in a temporary directory.  I could have done all these things with ACR (Adobe Camera Raw) or Lightroom.  In this case I didn’t have to do any white balance adjustments because I had preset the camera to approximately 4100K.

I then dragged and dropped all the exported (JPG) images onto Image Stacker which took about 3 seconds per image – less than two minutes to create a result. My option for Image Stacker was “Brighten” mode. I could have used the Star Circle Academy Stacking Action in Photoshop instead and the result would have been identical.  The stacking action takes about the same amount of time, but is more versatile and can even use raw images. (Note: StarStax is a program that supports Mac, Unix and Windows and works well, too!)

Photo 4: First Results stacking 34 images in Image Stacker by Tawbaware – this is effectively a 3 hour, 24 minute exposure.

The result was a little dark and flat so I used Picasa 3 to increase the exposure (called Fill Light), highlights and shadows – each by about 1/4 of the scale, and I warmed the photo by slightly tweaking the white balance (Color Temperature). That was all I needed to get the image shown in Photo 1.

Screen Shot 1: Picasa Adjustments

One obvious problem with the result is that the combination of the early short exposure with the sequence of shots left a gap. There really was no reason to include the first shot.

I want the cliff to pop a bit better, so my next course of action was to work on improving the foreground.  I found all the brightest shots of the cliff face (e.g. when the trucks were lighting them), and combined them using additive stacking to brighten them and averaging to reduce the noise. Remember that “brighten mode” (Lighten in Photoshop) does not brighten anything – what it actually does is select the brightest pixels at each location from each of the images in the stack.  The brightest pixels may also be noise! Using averaging reduces the noise significantly – but it will not remove “hot” pixels; we will address those later.  Fortunately Image Stacker has an option to stack and average. All you need do is specify the divisor.  If you have 10 images and specify a divisor of 10 then you are simply averaging. But if you specify a divisor of, say 5, then you are averaging AND effectively increasing the brightness by about 1 stop.  I used 12 images and a divisor of 3. And I made the same adjustment to the result in Picasa as I showed in Screen Shot 1. But I wasn’t happy with the result – the foreground still wasn’t bright enough.

Next I took 10 of the brightest images and Stacked them (additive).  After tweaking shadows and brightness in Picasa I got this:

Photo 4: Additive stack of 10 images.

Now my foreground is better, but I have created a new problem. The sky is over-bright and the hot pixels and the noise are significant as shown in a 100% crop below.

Screen Shot 2: 100% view showing Hot Pixels and noise (white speckles)

The hot pixels here have a purple fringe to them. Sometimes hot pixels are tinged red, green, blue, white or gray. I will fix hot pixels in my next to last step using the clone stamp (Picasa’s retouch) or the healing brush in Photoshop.

While the noise is obvious at 100% I think it will be fine so I am not going to address it.  If I later find the noise intolerable I will go back and stack more images and average them. Or I may return to the original images and apply stronger noise reduction in Digital Photo Professional and re-export them.

My next task is to remove the over-bright sky from the Photo 4, above. Sky removal is rather easy with the wand selection tool in Photoshop. I select all the sky and fill with black after making a few more tweaks to contrast and color.

Photo 5: Sky removed and replaced with black.

Since I now have a black sky version with the foreground as I like it, I can include this frame in any other stacks I make, and my foreground will be just as I want it. If I were working entirely in Photoshop, I would not have to fill with black, I could just use the result as a layer with only the foreground revealed by a mask.

To complete the process, I restacked 33 images together with the sky-less foreground image (Photo 5). Some more minor shadow and color temperature tweaks and some spot corrections of the few hot pixels (there were about 15), an addition of my copyright and this is the result:

Photo 6: Final Image

Since I had all the images for the stack, I was challenged on Flickr to also make a time-lapse video. This video below also helps to illustrate how stacking works. I collected the original thirty-three 6 minute exposures and cropped them to HD format (1920 x 1080). I then created and a sequence of stacked images using the intermediates option of Star Circle Academy Stacking action and joined them into an animation complete with a lovely snippet of the song Kidstuff by Acoustic Alchemy. In my next column, I’ll show how to create the time-lapse animation.

Red Rock Dancing *Explored 03-03-2011*

If you would like hands on experience and instruction, you can join us at a StarCircleAcademy Workshop

Protected: Astrophotography 101: Getting Started

This content is password protected. To view it please enter your password below: