You’ve always dreamt of making panoramas of your holidays pictures. You’ve never done it because you’ve never found the right software in Ubuntu or it was too complicated to set up? Me too. Until recently and the discovery of Hugin.
Let see how to achieve this.
First of all you obviously need of Hugin itself. Fortunately it is part of (K)Ubuntu 7.10 repository!
Just type this into a terminal to install it:
sudo apt-get install hugin
You can then launch it from the K menu (under Kubuntu): Graphics > Hugin. Should be similar with Gnome. Anyway you can launch it from a terminal, calling hugin.
Here is what you should see:
As indicated, the first step is to load the pictures used for the panorama. In my case I will use only 2 pictures, but the process remains the same for a greater number of photos:
Once your pictures are selected you will obtain such screen:
This tab allows you to position your points of control. These points are « commonalities » between the 2 pictures. Hugin will base its extrapolation on it and generate the panorama.
Positionning of the points of control:
The idea is to choose significant points, simple to position: top points, corniche, angle… No need to add thousands of points, 3 or 4 might be enough for a 2-pictures panorama. You’ll be always able to add more later if necessary.
So, I place my first point on the left picture: I chose the top of a roof. When you click to position a point, it automatically zooms and you can refine the point’s position:
I then added its twin on the right picture. Hugin sometimes places it perfectly if you click near the right place. Or you can refine it in zoom mode:
Then click on the Add button (red box above) to save the point:
I then followed the same steps to add 2 more points:
Go back to the « Assistant » tab to finish (red box above).
As you can see on the screenshot above, Hugin detected successfully 3 points of control and asked to align them. So please Hugin and click on.. Align! (surprised?). The next screen appears:
First overview of what your panorama should look like :) Result is not so bad, and that without any optimization! If necessary you can rotate the picture here (here it was not necessary, the panorama being already well aligned on the horizontal axis).
Update and close the window. Then click on Create the panorama to finish and save your file (.tif) where you want. The panorama calculation starts when you validate and save the picture once done.
Getting the final panorama
As you will see, the picture obtained (here opened in Gimp) will look like this:
Here, 2 choices:
The 2 results
Not that bad?
As you surely noticed, there are many tabs in Hugin not used in this tutorial: these tabs are necessary to refine the panorama when it is more complicated, as it is with many pictures. I leave you to explore all the possibilities!
N.B: This article is a translation, as I used to talk and write in French. Feel free to notify any important mistake.
Edit:A few english mistakes corrected thanks to David T. review :)