Tag Archives: HDR

Two Image Pano / HDR / Focus Stacking

Intro

It’s been a while since I posted an in depth technique article, so I thought I’d do another one.  Warning: Major photo geek out ahead.  If you’re not into HDR, panoramas, post processing, etc. please move along.

OK, now that it’s just us photo nerds left, wanna see some sausage made?  Let’s get started.

My question to you:  What if you want more pixels in your final image, more dynamic range in both highlights and shadows, and better depth of field, all by using a much simpler technique than you might normally use?  How would you go about it?  I’ll explain one approach I used recently to make this lead photo from my previous post:

Sunrise at Viera WetlandsFinished image (click to view on Flickr)

I made this with a 12 megapixel Nikon D700, but my final image file is 4238 pixels wide by 5776 pixels tall (about 24.5 Megapixels).  It has good depth of field with objects from very close out to the horizon in focus.  It also has good dynamic range with both the ground and the sunrise & clouds well exposed.

Details

If you were going to create an image like this using conventional techniques, it could require 6 or more exposures.  You’d mount your camera on a tripod and manual focus. You might analyze the scene to decide on an optimum exposure.  Then you’d make three bracketed exposures around that, first of the lower portion of the image, then shifting your camera viewpoint up toward the clouds – three more bracketed exposures.  Then you’d use panorama software to combine the three pairs of images at each exposure value, followed by HDR software to combine the three resulting panoramas into an HDR file and tone map it.  You might have to play with the result quite a bit to eliminate noise, ghosting, etc. introduced by the HDR software.  And if you wanted to stretch the depth of field, you might go through this twice with different focus points, and combine them too.  In some situations, you could also try using graduated neutral density filters to control dynamic range.

Whew – that could be a whole lot of work!  I didn’t do all that.  Instead, I used a much simpler idea.  Basically, I just combined two images manually in Photoshop.

If you’re still with me, read on (it might look complicated, but it’s actually harder to read about than do).  Here are the details.

  1. I hand held my camera and used an image stabilized lens so I didn’t have to worry too much about longer exposures.  The camera was in landscape orientation.  I used aperture priority, with matrix metering auto exposure, and auto focus using the center focus point.  When I made these, I held my camera very carefully to make sure there was no side to side movement and that the horizon was level so there was no rotation between shots, and I made sure there was at least 30% vertical overlap between the two images.  I also shot in RAW mode for the best dynamic range and control over processing.
  2. For this first photo, I pointed at the sky and let the camera auto expose for the bright clouds and sunrise.  It also auto focused on the clouds in the middle of the frame.  It’s at 16 mm, ISO 200, and f/8 @ 1/160 sec.  Here’s the unprocessed RAW source image for the sky:
  3. RAW source image for the sky
  4. For this second photo I pointed down at the ground and this time the camera exposed for the dark foreground.  It auto focused on the ripples in the water just short of the first coot  (again in the middle of the frame).  It’s at 16 mm, ISO 200, and f/8 @ 1/25 sec. (almost 3  stops more exposure).  Here’s the unprocessed RAW source image for the ground:
  5. RAW source image for the ground
  6. Then I processed the RAW photos.  I used Capture NX2 and converted them to TIF, but you could use Photoshop to convert them and not need CaptureNX2.  I set picture control to neutral, white balance to daylight, enabled distortion correction, and tried to bring both photos closer in overall brightness.  Here are the two processed images:
  7. Sky image after RAW conversion
    Ground image after RAW conversion
  8. Next I loaded the files into Photoshop as separate layers in the same file, and used Photoshop’s Edit / Auto Align Layers function to place the two images relative to each other.
  9. At this point, I added a layer mask (reveal all) for the sky image and then painted black to remove the portions below the horizon that I didn’t need.  It was fairly easy to blend the images by changing the brush opacity and either erasing or painting in until it looked correct.
  10. The final steps then are the same ones used for any photo:  crop, sharpen, levels, apply any creative filters you like, etc.

Once you go through this a few times, it’ll be easier and you can, of course vary some of these steps based on your own preferences.

Conclusions

I think this “Two Image Pano / HDR / Focus Stacking” technique can be really useful and it has several advantages over standard approaches normally used for this kind of image.

Benefits

  • It’s simpler than conventional techniques, and yields very good results.
  • You can hand hold in many cases, especially if you use an image stabilized camera or lens.
  • It uses the camera’s auto exposure effectively to expose correctly for the different areas of the image.
  • You can post process with just Photoshop – other software isn’t required.
  • It greatly increases the dynamic range of the final image without requiring HDR processing or software.  It doesn’t require a straight line horizon like graduated neutral density filters would.
  • Depth of field can be increased over that in a single exposure or in a conventional pano / HDR approach.
  • It also substantially increases vertical field of view.

Limitations

This technique is situation dependent: It’ll only produce portrait or perhaps square orientation output images (although you’ll have lots of pixels to crop to other formats).  It only works where the scene is easily divided into two portions where the brightness varies vertically.  Also,the dynamic range increase available from just two images may not be enough in all situations.

So, should you use it?

Why not?  Under the right conditions, it can generate very good results with minimal effort.  Now that you’ve heard about this technique, you can watch for scenes where you may be able to use it.

Then you can try it – and please let me know how it works for you.

© 2011, Ed Rosack. All rights reserved.

Photoshop CS5 Merge to HDR Pro – Ghost Removal and Colors

Burning waters @ Orlando WetlandsBurning waters @ Orlando Wetlands – Sunrise and flowers at Lake Searcy

I’ve been using Photoshop CS5 for a while and I really like the new capabilities.  Using  content aware fill to delete/ replace areas in photographs works amazingly well.

The new “Merge to HDR Pro” also works better than the CS4 version.  I had also been very impressed with the “Remove ghosts” check box when merging images into an HDR.  This automatically identifies and fixes features in the image that move between the multiple exposures used to create the HDR.  In the image below, the wind was blowing and caused the flower to move between shots.  It shows how effective the automatic Ghost removal can be.

Left: Ghost removal off;  Right: Ghost removal on
Left: Ghost removal off; Right: Ghost removal on

But…  I’ve noticed some issues with color when using CS5 to create several of my HDR photos.  Very bright areas sometimes have sections that are discolored, as in the example below.

Discolored areas in CS5 HDR image processed with Ghost removal on
Discolored areas in CS5 HDR image processed with Ghost removal on

This puzzled me until I discovered today that the discolored area seems to be related to Ghost removal.  Here is the same image, but this time processed with Ghost removal off.  You can see that the discoloring is gone (or at least greatly reduced).

Discolored areas in CS5 HDR image do not appear with Ghost removal off
Discolored areas in CS5 HDR image do not appear with Ghost removal off

So, how can you get around this problem if you have bright areas like a sunrise or sunset and you want to use Ghost removal?

What I did was run the Merge to HDR twice – once with Ghost removal on and the second time with it off.  Then I copied the results into separate layers in a single file and used a layer mask to select which version I wanted in different areas of the photo. For the sky, I chose the layer with Ghost removal off and for the foreground area with moving vegetation, I used the layer with Ghost removal on. It is an extra step, but definitely worth it for an image you really like, like the one at the beginning of this post.

©2010, Ed Rosack. All rights reserved.