Showing posts with label Panorama. Show all posts
Showing posts with label Panorama. Show all posts

Tuesday, January 3, 2012

I, the DSLR Dummy: Panoramas with Hugin

I have been trying my patience with panoramas in the last months. I have been using a nice GPL stitching software called Hugin that basically does everything by itself. It is trivial to install Hugin in any computer as there are compiled versions for unix, windows and mac. 

In the most basic mode, you select a series of overlapping pictures and let Hugin do its magic. Of course, it is a matter of taking the right pictures or calamity strikes as you can see from one of the first panoramas that I stitched:

Clarke Quay from Brewerkz, Singapore 2011.
These are some six photographs taken from an un-leveled tripod without minding the distance between the  first objects and the camera. I am a lucky guy and the result is not an eye sore but it was sheer luck that the distorted perspective came out somehow right. 

The nice thing about Hugin is that, once you level the tripod for the axis of the camera to coincide with the tripod's axis of rotation and take care for the subject to be far from the lens, it is trivial to get a nice cylindrical  projection panorama:

Harbour Front from Mt. Fabor, Singapore 2011. 
These are some eight photographs taken from a leveled and aligned tripod. Again, it was sheer luck that I got such a nice effect with the sunset at the right.  

But not everything is oats with honey, once you shoot without some stabilization or a scene that has moving parts, such as cars in a city, things get a little bit messy; for example, this one is a composition of ten pictures taken from a standing position without tripod:

Zurich Sea from Grossmunster, Zurich 2011.
I was afraid that my epileptic pulse will screw things up so I took some twenty three shoots; only ten were useful in the composition of this panorama. Even worse, Hugin didn't manage to recognize overlaps and treated the pics as independent. The good thing is that once this happens, Hugin takes you to the control point window automatically, there you can manually input control points on contiguous photographs. It seems like the best approach is to identify two sets of parallel lines, one pair of vertical and one of horizontal lines, in each pair of overlapping pics. It sounds like a hard task, but the fine tune button helps a lot in identifying the right points and it only took me around half an hour to set three hundred control points for the panorama above. I want to think that the result is not that bad after cropping it a little.

In short, for those doing this just for the sake of keeping a memory and having a hobby, or running on a tight budget like me, Hugin is a great option for stitching panoramas. It has a great automatic recognition of control points that does the work for you most of the time—so far I only had to do manual selection of control points in one out of seven panoramas—, a good selection of projection algorithms—I have only played with cylindrical projections so far— and it is for free; if you like and use it, don't forget to make a donation to the Hugin project!

I hope you enjoy your stitching as much as I do. Here are some of the panoramas I have stitched so far. 


Tuesday, July 5, 2011

I, the DSRL Dummy: Panoramas by a Dummy

Last weekend, I took my lazy derriĆ©re—all geared up with camera and tripod—up the Kent Ridge to take pictures. The excursion's primary goal was take a set of photos to create a panorama; a secondary objective was to try and shoot manual—this one was not all that successful.

I spent two hours walking the ridge and shooting—truth be told, there was a lot of cursing because I have no practice on handling the aperture and shutter dials for manual shooting. I liked two or three of the almost one hundred pictures I shoot. Today, I sat down and decided to take these ten pictures and try to make a panorama.

First, there's a nice free GPL program for creating panoramas: Hugin. Sources and binaries for Linux/Win 7/Mac are available at Hugin download. The installer is very simple to follow and you will be playing with Hugin in a blink.

Hugin welcomes you with a tip. Dismiss it and the Panorama Stitcher's assistant is ready to upload the base pictures. Click on Load Images, select your images and load them into the stitcher. Now, click on Align, relax, go for a drink, it takes time for the stitcher to process your images. Once the images are aligned, click on Create Panorama, a window with the preview will pop up. In my case, the stitcher did a great job aligning the images so I just went back to the Assistant window and clicked on the Optimizer tab and ask the program to run a crop optimization for itself. Then, I went to the Exposure tab, chose the low dynamic range option and asked the program to run a optimization for itself.  Finally, I went to the Stitcher tab, asked the program to Calculate Optimal Size and then Save the Project and Send to Batch. The batch processor will pop up, here you can toy with more things but I just processed my file, this was the result:

The West Coast from Kent Ridge.
You can see the same image at my Picasa were you can zoom it as much as you want, just follow this link.

As you can see, the exposure optimizer does a great job. I tried to equalize the exposure of the original raw files with Raw Therapee before manipulating them in Hugin but, as you can see with the original ten files, the different exposure levels were still clearly visible. Please excuse the distorted horizon, I'm still trying to learn how to compensate for geometric distortion.

In summary, Hugin does a great job stitching panoramas. It basically did all the work by itself from aligning to balancing exposure. Awesome program.