Panoramic photography with free software and cheap hardware

 by stuuf
Panoramic photographs are used to make images of scenes that are too large to fit in a normal camera lens or even too big for the human eye to see at one time. Most well-known panoramas are outdoor landscape shots of geological features or city skylines, but they are useful for taking large pictures inside buildings as well.

Panoramas are almost as old as photography itself. Professional photographers and inventors have been creating extreme wide-angle photos using a variety of methods since the nineteenth century, but until recently these required expensive specialized equipment and processing techniques. Several types of panoramic cameras have been built over the years that expose a large sheet of film by either moving a lens across it or exposing through a fixed lens with a very wide view angle.

More recent innovations in photography include digital cameras and computerized image processing, which have made possible yet another panoramic photography technique: image stitching. Stitched panoramas allow much more flexibility than older panoramic cameras and are well within the budget of any amateur photographer.

A stitched panorama starts off as a series of shot through a standard lens, with the camera in the same location, using the same exposure, but facing in different directions. Computer software then analyzes the separate images to determine which angle each one corresponds to, and finally combines all the images into a single seamless panorama.
 
Remove these adsRemove these ads by Signing Up

Step 1: Tools needed

cathedral-r-100x140-2048.jpg
harbor8k.jpg
You'll need a few tools for this project. Fortunately they're all either free or easy to find.

The first obvious thing is a digital camera. A good SLR is best of course, but some inexpensive point-and-shoot cameras can be used, with a few considerations:

Modern compact cameras let you easily take well-exposed pictures of any scene by managing the sensor, shutter, and lens settings automatically using built-in light metering. This is great most of the time when you're taking individual shots, but if you take two pictures of the same object from different angles, the brightness, focus, and colors might not be the same. Since panoramas require multiple images from different angles to match up perfectly, you need a camera with a manual aperture/shutter/white balance mode. Some cameras (including some Canon and Olympus models) even have a dedicated panorama mode that locks the exposure settings for a series of shots and have a visual guide for overlapping the pictures.

A tripod, while not strictly necessary, makes taking panoramas much easier, especially for very wide scenes or indoors. A pan-head tripod lets you rotate the camera without changing its position, which is surprisingly hard to do with a hand-held camera (at least if you're not thinking about it) Ball-head tripods, like many miniature portable models, don't work as well, since you can't smoothly spin the camera without it moving up or down.

The software part of this project is handled by a few different programs, all of which are free software and available for most operating systems.

Hugin is the program that manages the entire image stitching process. Most of the actual work is done by other programs, but hugin provides a convenient way to call each of them and usually tells you what to do next if you get lost. (http://hugin.sourceforge.net)

Hugin is based on a set of applications and libraries called Panorama Tools, including the libpano library, and the important programs PToptimizer and PTStitcher. Most of panotools is now open source (http://panotools.sourceforge.net/), except PTStitcher. However, there are two replacement programs available: PTmender, available from the panotools website, and nona, which is included with hugin.

Two more applications are not part of panotools but can be used with hugin to make your panoramas look better:

Autopano (or autopano-sift) automates the first step of panoramas, finding control points that tie pairs of images together. You can do this by hand if you have the patience (and you'll probably want to clean up after autopano to get the best result) There are a few different implementations of autopano available, the latest being autopano-SIFT-C (available at the hugin website)

Enblend is another optional tool for improving the final results of not-so-perfect panoramas. Where two images meet in the stitched image, there will often be visible seams or objects that are in slightly different places. Enblend can replace these seams with smooth transitions. Recent versions of enblend also include a related (using some of the same math) tool called enfuse that uses exposure blending to combine images of the same scene at different exposures to create a single simulated high dynamic range image. (http://enblend.sourceforge.net/)

A general-purpose raster image-editing application is useful for final post processing, cropping, or printing of your panoramas. GIMP is a popular free tool suitable for this (http://www.gimp.org/)
alltootechnical says: May 29, 2010. 7:48 AM
You can use Windows Live Photo Gallery instead. It has a stitch photos function.
camel flag says: Sep 25, 2009. 11:32 PM
just use photo synth sooooo much easyer.
stuuf (author) in reply to camel flagSep 26, 2009. 7:35 AM
I put "free software" in the title and you suggest a microsoft product. Way to miss the point.
frollard in reply to stuufOct 8, 2009. 1:18 AM
reading further into the comments it seems you're opposed to ice...never mind.
frollard in reply to stuufOct 8, 2009. 1:13 AM
Microsoft Research ICE (Image composition editor) is DEAD simple, totally free, all windows platforms 32 and 64 bit.

No thought involved.  Drop all photos, and it calculates the image.  No adjustment of any photos.  You can change the expected input (rotating camera or linear) and projection of the final (cylinder, sphere, isometric)...and it spits out glory every time!  Check it out!
camel flag in reply to stuufSep 29, 2009. 5:31 AM
photo synth IS free
jaceone says: Dec 24, 2008. 1:16 PM
Hmm that scene looks familiar.. GO TIGERS!
Jason Bourne in reply to jaceoneJun 16, 2009. 12:52 PM
is that mizzou?
DELETED_manonfire285 says: Dec 14, 2008. 3:23 PM
(removed by author or community request)
stuuf (author) in reply to DELETED_manonfire285Dec 14, 2008. 4:29 PM
What exactly does it do that hugin and autopano-sift can't? (besides forcing me to use an expensive proprietary operating system)
DELETED_manonfire285 in reply to stuufDec 14, 2008. 5:42 PM
(removed by author or community request)
stuuf (author) in reply to DELETED_manonfire285Dec 14, 2008. 7:25 PM
Autopano can create control points from a set of images automatically and can be called directly from inside hugin. Hugin can also correct images with different exposures or white balance (if you do something stupid like try to take a panorama with your cell phone) Anything else?
jphphotography says: Dec 2, 2008. 6:52 PM
You should try out autostitch, its free and does everything automatically. The algorithm has been licensed out to a bunch of professional programs (Autopano Pro being my favorite) and companies including ILM. Check it out at www.autostitch.net The default settings make a pretty small panorama and the compression is set to 75% quality. Change output to 100% and set quality to 100% and you're set. I agree though that panotools gives you complete control but for average users I always recommend autostitch simply due to the ease of use.
stuuf (author) in reply to jphphotographyDec 4, 2008. 11:02 AM
Yeah, thanks. I'm always looking for closed-source demo programs that have less flexibility than tools I already know how to use and don't run natively on my operating system.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!