Building Panoramic Images in The GIMP
Panoramic landscapes make for some amazing photos. There's nothing like the feeling of relaxation and tranquility gained by gazing over the vivid images of sweeping wilderness, minus the hassle of actually getting there. Using a digital camera, it's possible to stitch photos together to simulate the expensive effects of a landscape filter. After I'd bought my digital camera (a Nikon Coolpix 4300) and set it up to work under Linux, getting software to stitch photos together was my next task.
The Nikon Coolpix 4300, like most digital cameras, comes with software on CD to perform rudimentary photo-stitching. Unfortunately, the software is not for Linux. Using Google, it was hard to find anything that would do the job under Linux, until I remembered The GIMP. There are two ways to use The GIMP to create a panoramic photo, easy and hard. The hard way is to set up layers out of the different photos, edit filter and layer masks, mess about with transparency and layer them together, manually.
The easy way is to use Pandora. Pandora is a plugin for The GIMP that takes photos and tries to match the edges of the photos together, using a best guess at where one photo ends and the next begins.
Because Pandora is a GIMP plugin, to install it, you need The GIMP version 1.2 or 1.3, as well as Gimptool, which is provided in The GIMP development package. Untar Pandora to a working directory, cd into it, and run make. Pandora detects which version of The GIMP is available and installs it automatically.
Fire up The GIMP. Pandora should now be available under the Extensions (Xtns) menu as Make Panorama. Select the photos you want to stitch together and click the Add File button; under The GIMP 1.2, you need to add the photos individually, as they should appear from left to right. It's possible to create vertical panoramas, but you need to make use of the rotate feature, as Pandora works horizontally.
Pandora can be set with some options before it does its work. The option to feather the layers creates a fade toward the edge of the photos, where the photo becomes slightly translucent. Keep it toggled to create a semi-transparent fade at the sides of each photo, making them easier to line up.
Related to feathering is overlap. Often, photos have minor differences in sky colour; overlap helps to blend the difference so it isn't noticeable. The higher the overlap, the further in from the edge of the photo the feathering takes effect.
Once you're happy with your choices, click OK and Pandora starts to perform its magic.
When the processing has finished, you are presented with a set of layers, one for each original photo. The layers, represented with a dotted line at the edge, should be lined up roughly to what Pandora thinks are the common portions of each picture. Because Pandora is mostly a means of automating the layer creation and feathering, your panorama likely may require a bit more work before you can start impressing your friends.
Using the Move layers and selections tool (represented by the four-directional arrow), you can select a layer and move it, by holding the left mouse button down while moving the mouse. The easiest way to line the images up is to find a common landmark at the edge of each photo—mountains or trees are ideal—and use these as the anchor around which the images are aligned.
Once the layers are lined up to your satisfaction, you may notice that the pictures have moved out of their perfect vertical alignment, resulting in a jagged top and bottom edge.
Right-click in the image window, and choose Layers→Flatten Image. This merges the layers into one. If you haven't finished lining up the edges, you can undo this last action. Now, using the Select rectangular regions tool, select a region from the bottom left corner to the top right, ignoring all white space caused by the jagged edges mentioned earlier. Copy into a new image, save and you're done.
|Dynamic DNS—an Object Lesson in Problem Solving||May 21, 2013|
|Using Salt Stack and Vagrant for Drupal Development||May 20, 2013|
|Making Linux and Android Get Along (It's Not as Hard as It Sounds)||May 16, 2013|
|Drupal Is a Framework: Why Everyone Needs to Understand This||May 15, 2013|
|Home, My Backup Data Center||May 13, 2013|
|Non-Linux FOSS: Seashore||May 10, 2013|
- RSS Feeds
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- Dynamic DNS—an Object Lesson in Problem Solving
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Download the Free Red Hat White Paper "Using an Open Source Framework to Catch the Bad Guy"
- Tech Tip: Really Simple HTTP Server with Python
- Roll your own dynamic dns
4 hours 21 min ago
- Please correct the URL for Salt Stack's web site
7 hours 33 min ago
- Android is Linux -- why no better inter-operation
9 hours 48 min ago
- Connecting Android device to desktop Linux via USB
10 hours 16 min ago
- Find new cell phone and tablet pc
11 hours 14 min ago
12 hours 43 min ago
- Automatically updating Guest Additions
13 hours 52 min ago
- I like your topic on android
14 hours 38 min ago
- This is the easiest tutorial
21 hours 14 min ago
- Ahh, the Koolaid.
1 day 2 hours ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi
It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?