This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

Feature: Reviews

Hugin panoramic photo editor extends its reach

By Nathan Willis on October 30, 2008 (3:00:00 PM)

Share    Print    Comments   

The developers of the free panoramic photo editor Hugin released version 0.7 this month, culminating a two-year development cycle. The new release incorporates key new technical abilities and usability improvements to help demystify the panorama creation process for the average shooter.

The 0.7 release is available from the Hugin project's Web site in the form of a universal binary for Mac OS X and a source tarball for Linux and Windows. Binaries for Windows are expected to arrive "soon." Hugin is also provided through the package management systems of most major Linux distributions, several of which have been supplying beta releases of 0.7 during the long run-up to the final release.

If you just can't wait for the final version 0.7 code to make it into your distribution's package management repository, the Panotools.org wiki maintains detailed instructions for compiling from source, tailored for Fedora, Ubuntu, and Gentoo. Compiling Hugin is not tricky, but the application depends on a lot of supporting packages to cope with the wide variety of image formats and calculations involved in aligning, warping, stitching, and blending photographs.

I followed the Ubuntu compilation instructions and ran into only one hiccup: the latest CVS version of the support tool enblend crashed on a few of my tests. Following the advice of the hugin-ptx mailing list, I backed up to an earlier release and had no further trouble.

The compilation instructions specify 10 steps, but several of these are optional, covering add-ons such as alternative "control point"-generating packages that are still in testing. This peculiarity is the result of Hugin's history; it was born from a suite of panorama tools that each performed one step of the process -- either alignment, stitching, blending, or control point matching. As the project matured, many of the original components were replaced. On the whole, that is a strength: the blender enblend can do more than the component it replaced, as can the stitcher nona. It's just that the replacement control point generator isn't here yet.

New, new, new as far as the eye can see

The changes in 0.7 are substantial. New users will appreciate the addition of an "assistant" mode that greatly simplifies the process of creating a panorama. The assistant allows you to select images, align them, and create a panorama with one click per step. The assistant does its best to guess the appropriate values for details like image blending and panorama projection, but it works entirely within Hugin's existing tool set, so if the automatically generated image is not to your liking, you do not have to start over from scratch to fix it, but can simply tweak the individual settings. So far, the assistant only assists you in stitching panoramas and not Hugin's other functions, such as perspective correction, but it is good and effective at its task.

The software's online help system has been thoroughly updated, which is far more important for a technically tricky application like Hugin than for a casual-use program like a media player. By and large, Hugin does an excellent job of automatically setting the large number of options and parameters involved in stitching and blending images, but when the end result doesn't quite work, the detailed help makes making adjustments easy. It includes both feature-by-feature documentation and clear, well-written tutorials with common use cases as examples.

Several of the tool screens include usability improvements. From the preview tool you can now make adjustments and see updated results instantly. In the all-important control points screen, matching pairs of control points are now numbered -- a big improvement over the color-coded system of past releases -- and pop-up magnifying glasses make it easier to precisely align control points. Projects can be saved as templates, and there are several new panoramic projections to choose from, including several from cartography.

On the technical level, 0.7's powerful new "photometric model" opens the door to new kinds of image adjustments. In addition to the geometric alignment and matching used to seamlessly fit individual pictures together, Hugin can now perform similar corrections for exposure, color balance, chromatic aberrations, and even vignetting. This means that component images can be blended together with far greater accuracy, but it also means Hugin can do new tricks, like fuse multiple exposures together into wider dynamic range images, and even output the results in high dynamic range (HDR) formats like OpenEXR and 16-bit TIFF.

Hugin 0.7 also introduces a new image alignment tool, straight-line control points. Historically, control points were used to match scene features that appeared in two adjacent images, with the shift between the points' locations determining the transformation needed to align the two images. Previous versions of Hugin introduced vertical line and horizontal line control points, which were used to mark scene features that should retain perfect vertical and horizontal alignment. Straight-line control points take this idea further, allowing you to mark any edge in the scene and prevent it from being bowed or warped by the transformation. This is especially useful when a straight object cuts directly across the seam between two images; a broken line in the finished panorama would be very distracting.

Several automatic control point generating utilities are available for use with Hugin 0.7, primarily because the dominant control point generator, Autopano-SIFT, is patented. It is freely available for most users, but the Hugin development community still needs to find a patent-free replacement that can be shipped in any jurisdiction and with strict adherence to free software licensing issues. You can test out several alternatives in various stages of development: autopano (no relation), panomatic, or matchpoint. Changing control point generators is a simple setting in the Hugin preference panel.

Finally, Hugin 0.7 now handles stitching and blending in external processes, which you can run in the background while you edit a different project, put in a batch queue to run unattended, or even send to a different machine.

Just over the horizon

Developers say they hope to accelerate the release cycle for Hugin 0.8, incorporating new work done in the 2008 Google Summer of Code. Teased features including masking out objects, automatic removal of moving objects such as clouds, and a more complete batch processing tool.

There are still a few quirks in Hugin 0.7, such as the necessity of using the mouse to make fine adjustments to control points and to re-center and re-align the panorama in the preview image. Since users have such precise control over other aspects of the panorama generating process, it sticks out that these few tasks remain eyeball-accurate only. I also could not uncover any way to disable automatic exposure adjustment altogether, something I wanted to employ for a peculiarly lit scene that never looked right with Hugin's adjustments.

Although I appreciate the new preview tool, it is still difficult to use for anything precise. Right-clicking is supposed to reset the horizon line, but exactly what it changed was never exposed in the interface, either numerically or visually. The preview window shows individual toggle buttons for every input image in the panorama, but only the buttons and not the images are labeled. The tutorials make good use of labeled overlap diagrams to explain panorama stitching; the same technique might help in the actual user interface.

Finally, I was a little disappointed to learn that Hugin supports reading lens parameters only from EXIF tags in JPEG files. Working with TIFF is the cowboy way, after all, particularly when it comes to HDR formats like 16-bit TIFF, which is now supported by version 0.7.

Still, none of that detracts from the excellence of Hugin 0.7. The app has come a long way since the 0.6 series, and it is always nice when a new release features gifts for both the casual and power user. If you stitch a lot of oversized images, the photometric adjustments and the straight-line control points make this release worth an immediate upgrade. If you think that all of this talk about stitching and control points sounds like technobabble not worth your time, try out the assistant mode. It's easier than you think to piece together a prize-worthy photograph these days.

Share    Print    Comments   

Comments

on Hugin panoramic photo editor extends its reach

Note: Comments are owned by the poster. We are not responsible for their content.

Hugin panoramic photo editor extends its reach

Posted by: Anonymous [ip: 122.148.187.219] on October 31, 2008 02:59 AM
I love Hugin, I can easily create wonderful panoramas with it, and it's actually so easy, you just tell it which group of photos are part of a panorama and it sorts them into order and processes them.

tracyanne

#

Why open source development model is good

Posted by: Anonymous [ip: 213.157.167.13] on October 31, 2008 09:27 AM
Many new features from 0.7 (like photometric model, the assistant) I used since a long time ago, because, I could get the sources by svn and I could compile them. Of course, that was unfinished code, but I still managed to create dozens of panoramas.
This is possible only on open source projects. ;)
Paul

#

Hugin panoramic photo editor extends its reach

Posted by: Anonymous [ip: 75.168.73.157] on November 02, 2008 04:30 PM
I've been running Hugin 0.7.0 on Debian Lenny and overall it works very well. i would get occasional issues with 'enblend' but was able to overcome this be getting the package
"enblend_3.1~cvs20080801+dfsg-0.1_i386.deb"
from this website:
http://www.bebt.de/debian/enblend/
I also dislike the correction for differently-exposed photographs; I think pre-correcting them in Gimp may help but I've not gotten around to trying it yet. Overall, a great application.

#

Hugin panoramic photo editor extends its reach

Posted by: Anonymous [ip: 75.168.73.157] on November 02, 2008 04:32 PM
It seems that website has moved; there are binaries for the upgraded Enblend here, which also looks to be an Apt repository (for Lenny and others; this is for Lenny):
http://www.bebt.de/debian/dists/lenny/enblend+hugin/

#

Automatic adjustment of control points?

Posted by: Anonymous [ip: 199.246.40.54] on November 03, 2008 07:39 PM
Press "f" for fine adjustment on any point to attempt to find the best match in the selected pair of images. Or just click on something distinctive to create a new point with automatic estimate, add and fine tune selected (bottom right of control point window).

My usual workflow (which predates the new assistant):
Use panomatic to create many points for a set of images.
Start Hugin with the generated PTO file and fine tune all points. Throw away all points with less than 0.80 scores using the "Show control points" window.
Do a simple optimiser pass using y,p,r,v to get everything reasonably arranged. Check that the panorama is correctly orientated using the panorama window and ensure that the picture size is correct using the Stitcher tab.
Re-do the optimiser pass and delete all control points with pixel differences of more than 8 pixels.
Optimise points again (can use more options now, like barrel distortion) and now do the exposure optimisation to remove exposure/vignetting differences.
Stitch it.

The whole process can take 20 pictures and very quickly produce a complete panorama from an eclectic mix of shots.

#

Re: Automatic adjustment of control points?

Posted by: Nathan Willis on November 03, 2008 08:23 PM
Is that a question?

Nate

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya