31Shares Twitter 3 Facebook 9 Google+ 18 Pin It Share 1 31 Flares ×

Example of a finished HDR panorama

There is a type of image where HDR is an essential tool: Panoramas and vertoramas (vertical panoramas – for brevity I will refer to both simply as “panoramas”) are usually stitched from multiple exposures and depict a much wider angle than you can capture with a single shot (except maybe for shots taken with fisheye lenses). Due to this larger angle, the tonal range usually gets much higher, for example, because the sun is in the frame. This is a problem common to many panoramas and the logical choice is to use HDR to solve it. However, it is much harder to produce a proper HDR panorama than it is to produce a normal HDR image or a normal (non-HDR) panorama image. Again, I will not go into the details of taking the shots for a panorama (called “source images” in the following). There are numerous guides out there for doing this. Google is your friend here. I will explain how you can produce the final panorama based on a series of bracketed source images that are suitable for a panorama (e.g. have enough overlap). We call each set of three bracketed shots for a specific section of the panorama a “source image set”.

Assumptions

My assumptions are the following:

  1. You took your source images handheld. This is usually not recommended and it produces problems for both HDR and panorama processing. However, with the right tools, you can produce decent panoramas from handheld source images. Of course, the workflow also works for source images taken with a tripod, but this is not strictly necessary.
  2. The source images are in RAW format for maximum quality.
  3. You want to produce a single-row panorama – a a panorama made from a single series of shots taken e.g. from left to right).
  4. You have enough hardware resources! Creating an HDR panorama in full resolution requires a lot of memory and CPU power. While a lack of CPU power simply prolongs the process, a lack of memory can void your chances of finishing this process. Both Photomatix and Photoshop may require well beyond 2 GB of main memory for this task. So, my advice is that you get a computer with at least 8 GB RAM and 64-bit Windows. If that is not possible, you have to reduce the resolution of your source shots before you start the process. You have to experiment to find the highest resolution that your computer can handle.

Some Advice on Shooting the Source Images

Please check out my recipe for Taking Interior HDR Vertorama Shots to get a very detailed description of this process.

As I said, I am not going to write a tutorial on shooting panoramas. However, there are a few things that may make your live easier:

  1. Get the exposure right: When you identified what should be in your panorama, use the exposure meter of your camera to measure the shutter speed for the entire panorama (the aperture should, of course, be kept constant): Look through the view finder and scan the area you would like the appear in the finished panorama. Watch the shutter speed suggested by your camera (usually displayed in the view finder). Choose an area with a medium shutter speed (middle between the highest and the lowest shot). Focus on that area. Your camera should have an exposure lock button. After focusing, press that button and keep it pressed while shooting the series of source images. This will fix the exposure and the focus such that they are the same for each source image set, making the stitching easier and leading to better results. Note that this may lead to the situation that the darkest source image is almost black while the brightest source image is almost white due to the increased tonal range. We have to live with that! If you let the camera choose the best exposure for each source image set, then each section will be optimally exposed, however, in the final panorama, you will have unnatural transitions between the stitched shots – it will just look wrong.
  2. Leave enough space at the top and at the bottom as well as on the left and right margin: After the stitching process, the edges of your panorama will look like waves. You will have to crop the image to remove these uneven edges and produce a clean rectangular image. Consequently, some portion of the image at the edges will get lost. You have to take that into account while shooting.

    Source images

General Workflow – Overview

The general workflow will be as follows:

  1. Produce a 32-bit HDR (not a tone mapped LDR!!!) from each of the source image sets (the 3 or more bracketed shots for each single section of the panorama) with Photomatix
  2. Stitch the 32-bit images with Photomerge (a tool present in Photoshop)
  3. Tone map the stitched 32-bit image with Photomatix
  4. Post-process the tone mapped image in Photoshop

So you see, that this is not a straight forward workflow as you have to change between Photoshop and Photomatix multiple times. It is very important that you create the 32-bit HDRs first. In principle, you could also stitch a panorama for each exposure setting (one for 0ev, one for –2ev and one for +2ev if you use standard bracketing). However, the alignment of these three panoramas in Photomatix will not work in most cases. So we let Photomatix do the alignment job for each of the source images individually, and afterwards, Photomerge does the panorama alignment between the overlapping images. This work very well, even for handheld panorama shots.

Detailed Workflow

Preparation

  1. If you want to create a pseudo HDR panorama (using a single RAW image for each section of the panorama instead of a set of three genuine exposures), then you should load each of these single RAW images into Adobe Camera RAW (ACR) and create a set of three TIF images from each of them, each with a different exposure. In the simplest case, you set the “Exposure” slider in ACR to -2 and save, to 0 and save and finally to +2 and save. However, you should also try to get back as much details in the highlights and shadows as possible using e.g. the “Recover” and “Fill” sliders. After you have saved the three TIF files for each RAW, you can just continue with these files in the same way as you would with original RAW files (or JPEGs).
  2. Put all the source images of your panorama into a separate folder. This folder should only contain these images, no other image files. If you have multiple source image sets for different panoramas, create a source folder for each of them and copy (or move) the source images to the respective folder.

HDR creation

  1. Start Photomatix and go to “Automate > Batch Processing”

    Photomatix automate dialog (in German)

  2. In the dialog that comes up, tick “Generate HDR Image” and click on the “Setting…” button behind this option. Set the HDR options as desired. I recommend that you tick the “Reduce chromatic aberration” and the “Reduce noise” boxes. Also, if you have not set the White Balance to a fixed value while shooting the source images, then define a white balance value in this dialog (only possible for RAW images). Note that we only create the 32-bit HDRs in this step. There is no tone mapping involved yet. We will do the tone mapping after stitching the panorama.
  3. Further down in the automate dialog, tick “Align Source Images” and “By matching features”. Tell Photomatix that each HDR should be created from 3 images and give it the name of the source folder.
  4. Under “Save 32-bit HDR images as”, choose “Open EXR”. Photoshop can read this file format.
  5. Click start and let Photomatix create all the HDR images. Note you can also create every single HDR image manually, but the batch processing option saves a lot of time and work.
  6. After the HDRs are created, they are stored on your disk (usually in a subfolder of the original source folder created).

Stitching

  1. Now, start Photoshop for the stitching: Go to “File > Automate > Photomerge…”.

    Photomerge dialog

  2. Click on “Cylindrical” and select the HDRs you just created. Choose “Blend Images Together”, “Vignette Removal” and “Geometric Distortion Correction” and click “Ok”. Photoshop now merges your panorama. This may take a while.
  3. When the merging is done, save the resulting image in the OpenEXR format. This is an HDR format that Photomatix can read.

    Photomerge – Result (stitched 32-bit image)

  4. If you are stitching a vertorama (a panorama in vertical direction – source images not taken from left to right but from bottom to top) you should now rotate the whole image 90° counter-clock wise: Choose “Image > Image Rotation > 90°CCW”.

Tone Mapping

  1. Go to Photomatix again, load the newly created 32-bit panorama, and click on “Tone Mapping”
  2. Set the tone mapping settings as appropriate and click “Process”. After a few seconds (or minutes, depending on your computer) you will see the tone mapped image. Note that I usually set the white and black points to 0 in Photomatix since Photoshop does a much better job at correcting this. Hence, the result you see below looks very dark with muted colors. All of this will be corrected in Photoshop in the next step.
  3. Save the resulting image as 16-bit TIF (this gives you the highest possible quality for the post-processing).

    Photomatix – Tone mapping result

Post-processing

  1. Go to Photoshop again and open the saved TIF.
  2. Crop the image to remove the black parts on the edges.
  3. Sometimes, especially if have not got a lot of experience, you will find that the necessary cropping also removes some parts of the image that you would rather like to preserve. For instance simple cropping may remove too much of the sky, affecting the composition of the image. In this case, you can do the following:
    1. Crop the image such that sky has the right proportions (possibly leaving some of these ugly black areas around the image.
    2. Use the clone stamp tool: sample parts of the sky and stamp them into those black areas.
    3. Use the healing brush to fix any unnatural transitions between the stamped areas. However, be sure not to get to close to the edge of the image with the healing brush.
  4. Apply any post-processing magic you like
    1. For the normal post-processing in Photoshop, the same principles apply as for any other image. Correcting the contrast and the brightness as well as the saturation globally is the least you should do. For this particular image, I have treated the sky and the foreground differently, using a layer mask. To get a coarse impression, click on the image below. Also go to the photo’s flicker page to get some more details on the post-processing done here.
  5. DONE

    Photoshop – final result

Special Considerations for Vertoramas

The workflow for vertoramas is very similar to the panorama workflow detailed above. However, there is one step that is particularly important in this case: distortion correction

Vertoramas look particularly spectacular for certain subjects like churches. The interior of a church lends itself to this technique since it can bring out all the impressive details and create very unusual perspectives. Below, you see some examples of interior vertorama shots:

For this kind of shot, symmetry is very important. To achieve this, you have to adjust the distortion of the stitched image. Photomerge normally does not create a symmetric result as it tries to distort each source image such that they fit together.

  1. After stitching, go to “Image > Canvas size…” and add 1000 pixels to each dimension. Leave the anchor in the middle such that 500 pixels will be added on each of the four edges. This gives you the room required to correct the distortion. The excessive space around the corrected image will be cropped again later.
  2. Press Ctrl-H. This will bring up the grid that can help you in the correction.
  3. Go to “Edit > Transformation > Distort”. A bounding box will appear around the image area. You can drag any of the corners of this box to distort the image. Use the grid to judge whether everything is straight and whether, and make sure that symmetrical element of your image are really symmetrical (at the same spot to the left and right side of an imaginary vertical middle line). You can hold the Ctrl key while dragging the corners of the bounding box. This keeps the corners from snapping to the grid and allows you a very precise positioning.
  4. When you are done, press Enter on your keyboard.
  5. Crop the image by activating the crop tool in the Tools palette. Make sure your crop is symmetrical too. You can use the reference point at the center of the crop box. Drag the corners of the crop box such that this reference point is on the vertical center line of the image.
  6. Done

I have created a little time-lapse making-of movie for the Valletta church shot. This video shows the whole process.

Taking the Source Shots

  1. As you can see in the examples above, there is usually some architectural element that defines the focal point of the composition. For most church shots, it is the dome. This element has to be in the frame of the final image. Therefore, it is vital that you take the source shots accordingly:Take more shots than you think you need. Distortions and cropping will take away a comparably large part of the image on the edges. I start with the bottom shot with the camera almost pointing straight down (yes, my feet are on that shot). For my last shot I am bending backwards shooting the top part of the wall behind me (if there is any). This covers an angle of more that 180° in vertical direction! It’s easy to crop the image, but it’s impossible to add anything in post-processing.
  2. When you shoot, the center of your lens needs to be on the vertical axis of symmetry. For the church shots above this is the imaginary line running straight from the center point of the dome down to the floor. If you are not on that line, your shot will not be symmetrical or you need to crop too much from one side later on.
  3. Keep your camera square: Imagine there would be a plain wall at the end of the church. When you point your camera directly at this wall, the plane of your camera’s sensor needs to be absolutely parallel to this imaginary wall. Otherwise, one side of the shot will be further away than the other, making it impossible to achieve symmetry.

Please Refer to This Page!

Did you find this tutorial helpful? Did you use it in your work? Then there is a simple way of giving something back to me:

Please refer to this page when presenting your work online. You can simply use the following HTML code in your image description to refer to this site in a way that you think is appropriate:

 

<a href=”http://farbspiel-photo.com/”>HDR Cookbook</a>

 

Why should you bother to refer to this page? Well, for you it is a convenient way of revealing information about your work. And you know, the more information you give, the more attention you get. You do not need to write a whole novel because I already did this for you here. For me, the reference is beneficial because it generates some attention for this cookbook.

So, you see that referring to this page is good for both of us – a real win-win situation. :-)

Thanks!

17 Responses to HDR Cookbook – Creating HDR Panoramas and Vertoramas

  1. P.eter says:

    Didn’t knew you could open “OpenEXR” images in Photoshop, my workflow included using PtGui for this, will try your workflow next time.

  2. Paolo says:

    Wow! this is fantastic… thank you very much for sharing this… One day I’ll try it, and let you know how it goes (I am only missing a minor ingredient right now: Photoshop…)

  3. Ahmad Qazi says:

    Thanks for sharing all the details. Your work is amazing.

  4. Ed says:

    Klaus

    I left you a note on your flickstream as well. I fowlled your steps for an HDR pano and have complted my first one here:
    http://www.flickr.com/photos/cedwardbrice/5463248522/

    I’m sure it can be improved with better photography skills, but I really liked the outcome and your post has added a whole new dimension to my Photography.

    Thank you for taking the time to write such detailed and clear steps and share your knowledge with others.

  5. Hi, I am José, my workflow for panoramas is a little different than yours, I first create the tone mapping for each bracketed photos and these tone mapped images run the photomerge is P.S- and it works fine I will try your work flow and tone mapping after the photomerge.
    Thank you very much, I am learning a lot.
    Your friend José.

    • farbspiel says:

      Yep! Recently I also tend to stitch the tone-mapped images. But that depends on the image. Just try what works best for you AND the image. In any case, this recipe offeres an alternative.

      Cheers
      ___________________________
      Visit me at facebook.com/farbspiel
      and Google+ gplus.to/farbspiel

  6. Chris Budny says:

    Wow, what a treasure trove of info you’ve shared with us; thank you so much! I’d had decent success stitching horizontal landscape panos, but no luck on verticals. I followed your workflow yesterday, on a set of 5 images I’d captured for a vertical stitching attempt (which had failed in prior attempts) and it turned out so surprisingly good, I am eager to get out and do another capture, with more source images going up and behind me as you mention. Thanks again for sharing your knowledge and skill!

  7. Eric says:

    One note I’d like to mention, at step #4 in the stitching process for a vertorama, after the 90 degree CCW rotation, you may need to add canvas space in order to see the whole image.

    • farbspiel says:

      Hi Eric,

      I actually never need to add canvas here. Photoshop usually sizes the canvas so that the entire image fits onto it. Are you working with Photohop here?

      Cheers
      Klaus

  8. ken pascual says:

    Really nice panoramas! And thank you for the guide. Unfortunately, I do not have photoshop. The license is way out of my budget now as it cost $1K here in Singapore. I only have photomatix and lightroom.

    I am wondering how big will be the native resolution (no upsizing) of the final panaroma. For 35mm, if say I would like to create a 4 x 8 feet print size, how many pictures I need to stitch?

    • farbspiel says:

      Hi Ken,

      if you have a 12mpx camera with a resolution of 4000×3000 pixels, and if you assume a 33% overlap between the images in the panorama, you would need 14 images in horizontal direction to get an 8 foot long pano with 300ppi. The problem is that these are single-row panos. So, in vertical direction, you would always have only 4000px, which is about a foot at 300ppi. For a 300ppi print that is 8×4 feet, you would need a multi-row pano where you need to stitch about 5 x 14 images. If you have a camera with more resolution and/or you drop the requirement of printing at 300ppi, then things change of course.

      I hope this helps.

  9. Vick says:

    Wow this is a very in depth tutorial love, your whole cookbook learned so many new things! I had one question though, when I try to photomerge the 32 bit photos I get an error that says “photoshop cannot merge 32 bit source photos. They will be skipped.” I am currently using cs5 and I followed everything according to your tutorial and the photos are even in OpenEXR format (I tried tiff as well and both didn’t work. Please help! I would normally just do each shot separately, but after I put each set of 3 pictures through photomatix, each shot comes out with significantly different colors from the rest, even though the settings are the same.

    • farbspiel says:

      Hi Vick,

      I have just tested it and CS5 stitched 6 32-bit images without problems. Could it be that you tried stitching 16-bit and 32-bit images in the same run? Just an idea.

      Cheers

      • kubais says:

        Hi, I have exactly the same problem as Vick is reporting. PS reports aforementioned error. I am using CS6. Cannot imagine there they would remove this feature from CS5.

  10. Vick says:

    Well I checked the option “show intermediary 32-bit image” and then when the 32 bit image pops up I tried to save it all four formats and repeated this with another set of images. I then went to photoshop clicked photomerge and tried to merge them together but when I tried to merge the pictures together (tried all the fomarts) none worked and I get the error “photoshop cannot merge 32 bit source photos. They will be skipped.” Usually for a panorama I would merge and tonemap each set of 3 pictures with the same settings and then use photomerge to merge all the different tonemapped images together. But the problem is that even after tone mapping each picture the same, for some reason there are certain parts where the lighting is completely different which resulted in each tonemapped image to be different. Sorry for bothering you so much this picture has really been pissing me off as it just wont come out right haha

  11. Jon says:

    This is an excellent process you have developed. I worked out a similar way of doing HDR Panorama’s on my own, with many of the same steps, but I’ve learned a couple of really great tweaks from this tutorial. Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

31Shares Twitter 3 Facebook 9 Google+ 18 Pin It Share 1 31 Flares ×