<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jaysen Marais &#187; photoshop</title>
	<atom:link href="http://www.jaysenmarais.com/blog/tag/photoshop/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jaysenmarais.com/blog</link>
	<description>Making it happen, bit by bit</description>
	<lastBuildDate>Tue, 10 Jan 2012 06:50:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Spherical panoramas: photographs without edges</title>
		<link>http://www.jaysenmarais.com/blog/20090410/spherical-panoramas</link>
		<comments>http://www.jaysenmarais.com/blog/20090410/spherical-panoramas#comments</comments>
		<pubDate>Fri, 10 Apr 2009 19:52:00 +0000</pubDate>
		<dc:creator>jaysen</dc:creator>
				<category><![CDATA[panorama]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[pangeaVR]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[ptgui]]></category>

		<guid isPermaLink="false">http://jaysenmarais.com/blog/?p=134</guid>
		<description><![CDATA[Most lay-people see photography as the cut-and-dried act of capturing the world &#8220;as it is&#8221;. Ironically, the simple and necessary action of framing a photograph instantly renders the result subjective (&#8216;un-photogenic&#8217; subjects are typically pushed out-of-frame). This creative choice built into the camera&#8217;s design is part of the appeal of photography. However, we occasionally encounter [...]]]></description>
			<content:encoded><![CDATA[<p>Most lay-people see photography as the cut-and-dried act of capturing the world &#8220;as it is&#8221;. Ironically, the simple and necessary action of framing a photograph instantly renders the result subjective (&#8216;un-photogenic&#8217; subjects are typically pushed out-of-frame). This creative choice built into the camera&#8217;s design is part of the appeal of photography. However, we occasionally encounter entirely photogenic scenes that we wish to convey in their entirety. Luckily, there is a type of photograph that has no edges at all; the <a href="/blog/panoramas/">spherical panorama</a>.</p>
<p><object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="500" height="280" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="/panoramas/posters/poster_01_sand_blow_summit.mov"><param name="href" value="http://panoramas.jaysenmarais.com.s3.amazonaws.com/01_1800_500_sand_blow_summit.mov"><param name="autoplay" value="true"><param name="controller" value="false"><param name="target" value="myself"><param name="pluginspage" value="http://www.apple.com/quicktime/download/"><param name="type" value="video/quicktime"><embed src="/panoramas/posters/poster_01_sand_blow_summit.mov" width="500" height="280" autoplay="true" controller="false" href="http://panoramas.jaysenmarais.com.s3.amazonaws.com/01_1800_500_sand_blow_summit.mov" pluginspage="http://www.apple.com/quicktime/" target="myself"></embed></object><center><a href="/blog/panoramas/#moreton_sand_blow_summit" style="margin-right:5px;">Moreton island sand-blow (summit)</a><span style="background:url(/blog_media/time.png) left center no-repeat; padding-left: 21px; margin-right: 5px;">29th <abbr title="December">Dec</abbr> 08</span> <a href="http://maps.google.com/maps?t=h&amp;hl=en&amp;ie=UTF8&amp;ll=-27.193047,153.419059&amp;spn=0.005611,0.008765&amp;z=17" title="view in google maps" style="background:url(/blog_media/200904/google_maps_16x16.gif) left center no-repeat;padding-left:21px;margin-right:5px;">map</a> <a href="http://panoramas.jaysenmarais.com.s3.amazonaws.com/01_6500_sand_blow_summit.mov" rel="nofollow" style="background: url(/blog_media/quicktime_16x16.gif) left center no-repeat; padding-left: 21px;">HD (2.6<abbr title="mega-bytes">MB</abbr>)</a> </center>
<p>This spherical panorama captures the complete scene; from the zenith (above my head) to the complete horizon to the the nadir (under my feet). No photographic paraphernalia (camera, tripod, photographer) distracts the viewer from the scene. What kind of magical camera does this? Well, with the right know-how, software and technique any camera will do. This is because spherical panoramas are simply an amalgamation of many regular photographs. Here&#8217;s the kit I used to make my example panorama.</p>
<p><center><img src="/blog_media/200904/rig.jpg" width="500" height="222" alt="tripod, nodal ninja panoramic head and Canon 5D mark II" /><br/><em>Tripod fitted with a <a href="http://store.nodalninja.com/category_s/31.htm">Nodal Ninja 5</a> panoramic tripod head supporting  a <a href="http://www.dpreview.com/reviews/canoneos5dmarkii/">Canon 5D mark II</a> with <a href="http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&amp;fcategoryid=148&amp;modelid=7487">Canon 16 &#8211; 35mm f2.8L</a> lens</em></center>
<p>To get started we need a sequence of regular photographs which cover the entire scene. Typically this involves taking several &#8216;rows&#8217; of images, each containing a constant number of images (columns). The number of rows and columns required depends on the lens used but nevertheless the angle between rows should be consistent, as should that between each column (made easy by using a <a href="http://en.wikipedia.org/wiki/Panoramic_tripod_head">panoramic tripod head</a>, e.g. <a href="http://store.nodalninja.com/category_s/31.htm">Nodal Ninja 5</a>). In addition, a zenith shot (directly up) and two (complimentary) &#8216;nadir&#8217; shots (directly down) are required. Here&#8217;s the sequence of images I used to produce my sample panorama.</p>
<p><center><img src="/blog_media/200904/array_zenith.jpg" width="82" height="125" alt="zenith row" /><em style="display:block;">zenith</em><img src="/blog_media/200904/array_sky.jpg" width="500" height="125" alt="sky row" /><em style="display:block;">sky row</em><img src="/blog_media/200904/array_horizon.jpg" width="500" height="125" alt="zenith row" /><em style="display:block;">horizon row</em><img src="/blog_media/200904/array_ground.jpg" width="500" height="125" alt="zenith row" /><em style="display:block;">ground row</em><img src="/blog_media/200904/array_nadir.jpg" width="166" height="125" alt="zenith row" /><em style="display:block;">nadir (taking two at opposites enables later removal of feet &amp; shadows)</em></center>
<p>The rest of the spherical panorama creation process is all in software. I plan to cover the details in a future screen-cast, but for now here&#8217;s a quick overview:</p>
<ol>
<li><img src="/blog_media/200904/dpp_logo_75.jpg" alt="Canon Digitial Photo Professional (needs a better logo)" width="75" height="79" align="right" style="margin-left:10px;" />Ensure &#8216;consistent colour&#8217; across shots by correcting white-balance discrepancies (tip: remember to lock white-balance, exposure, shutter-speed, focal length and focus while shooting). Also correct any <a href="http://en.wikipedia.org/wiki/Vignetting">vignetting</a> (dark edges) and <a href="http://en.wikipedia.org/wiki/Chromatic_aberration">chromatic aberration</a> (coloured fringing on detail). For these tasks I use Canon&#8217;s bundled <a href="http://www.canon.co.uk/for_home/product_finder/cameras/digital_slr/eos30d/software/index.asp">DPP</a> software (if <a href="http://www.adobe.com/products/photoshoplightroom/">Lightroom</a>&#8216;s vignetting correction tools were better, I&#8217;d use it instead).</li>
<li><img src="/blog_media/200904/ptgui_logo_75.jpg" alt="PTGui" width="75" height="98" align="right" style="margin-left:10px;" />Import the corrected images into a stitching tool (after trying a few apps I finally ponied up for a copy of <a href="http://www.ptgui.com/">PTGui</a>). By creating control-point pairs (i.e. locating similar features in different photographs) I give PTGui the necessary information to correctly align, warp, composite and blend the all images (except for the zenith and nadir) into a single &#8216;stitched&#8217; equirectilinear result.</li>
<li>In photoshop I work a little magic to combine the two original nadir shots (which both contain my legs and feet) into a single feet-free nadir image</li>
<li>Using PTGui again I produce another equirectilinear image, this time containing only the warped ground (from the composited nadir) and sky (from the zenith shot)</li>
<li><img src="/blog_media/200904/photoshop_logo_75.jpg" alt="Photoshop logo" width="75" height="73" align="right" style="margin-left:10px;" />Back in photoshop I combine both equirectilinear images into a single image (&#8216;patching&#8217;) and apply any necessary retouching (e.g. making horizons dead-level and apply colour-corrections) to produce the <em>pièce de résistance</em>: the final (70+ megapixel) image.</li>
</ol>
<p><center><img src="/blog_media/200904/nadir_patching.jpg" width="500" height="387" alt="patching the warped nadir and zenith onto the stitched panorama in photoshop" /><br/><em>patching the warped nadir and zenith onto the stitched panorama in photoshop</em></center>
<p>At first glance this appears to be a regular photo, but in fact it covers 360&deg; horizontally and 180&deg; vertically (i.e. the entire scene). So how does it justify the &#8216;spherical&#8217; and &#8216;edge-less&#8217; tags? Well, the most effective way to present such an image is to wrap the rectangular image around an imaginary sphere and give the viewer control of a virtual camera placed at the orb&#8217;s centre. Rotating the camera simulates &#8216;looking&#8217; in the original scene. There are no limits on where the camera may look and no visible edges or seams.</p>
<p><center><img src="/blog_media/200904/wrap-sequence.jpg" width="500" height="80" alt="the distortion in the equirectilinear image disappears when the image is wrapped around a sphere" /><br/><em>the distortion in the equirectilinear image disappea<br />
rs when the image is wrapped around a sphere (inside which the viewer&#8217;s virtual &#8216;camera&#8217; rotates)</em></center>
<p>Spherical panoramas really take on a new dimension when combined with software like the <a href="http://jaysenmarais.com/blog/20080825/immersive-photographs-on-the-iphone-with-pangeavr/">PangeaVR iPhone app</a> I&#8217;ve mentioned before. Wherever I am I can show friends exactly what my favourite places are like by handing them the phone and saying &#8220;drag the image with your finger&#8221;. No other explanation, instruction or intervention is required for me to show friends overseas what the beach I learned to surf at is &#8220;really like&#8221;. Of course, the panoramas can also be viewed in a web browser. Below are links to a few panoramas I&#8217;ve created in the past few months from images taken on my Christmas holiday back home.</p>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="padding-right:10px;padding-bottom:10px;"><a href="http://jaysenmarais.com/blog/panoramas/#moreton_sand_blow_summit"><img src="/blog_media/200904/panorama_poster_01.jpg" width="160" height="90" alt="view 'moreton island sand blow (summit)' panorama" border="0" /></a></td>
<td style="padding-right:10px;padding-bottom:10px;"><a href="http://jaysenmarais.com/blog/panoramas/#moreton_sand_blow_saddle"><img src="/blog_media/200904/panorama_poster_02.jpg" width="160" height="90" alt="view 'moreton island sand blow (saddle)' panorama" border="0" /></a></td>
<td style="padding-bottom:10px;"><a href="http://jaysenmarais.com/blog/panoramas/#moreton_sand_blow_north"><img src="/blog_media/200904/panorama_poster_03.jpg" width="160" height="90" alt="view 'Moreton island sand blow (crest, north)' panorama" border="0" /></a></td>
</tr>
<tr>
<td style="padding-right:10px;padding-bottom:10px;"><a href="http://jaysenmarais.com/blog/panoramas/#moreton_sand_blow_middle"><img src="/blog_media/200904/panorama_poster_04.jpg" width="160" height="90" alt="view 'Moreton island sand blow (crest, middle)' panorama" border="0" /></a></td>
<td style="padding-right:10px;padding-bottom:10px;"><a href="http://jaysenmarais.com/blog/panoramas/#moreton_sand_blow_south"><img src="/blog_media/200904/panorama_poster_05.jpg" width="160" height="90" alt="view 'Moreton island sand blow (crest, south)" border="0" /></a></td>
<td style="padding-bottom:10px;"><a href="http://jaysenmarais.com/blog/panoramas/#moreton_beach_dune"><img src="/blog_media/200904/panorama_poster_06.jpg" width="160" height="90" alt="view 'Moreton island eastern beach (dune)' panorama" border="0" /></a></td>
</tr>
<tr>
<td style="padding-right:10px;padding-bottom:10px;"><a href="http://jaysenmarais.com/blog/panoramas/#moreton_beach_shore"><img src="/blog_media/200904/panorama_poster_07.jpg" width="160" height="90" alt="view 'Moreton island eastern beach (shore)' panorama" border="0" /></a></td>
<td style="padding-right:10px;padding-bottom:10px;"><a href="http://jaysenmarais.com/blog/panoramas/#palm_beach_avenue_beach_1"><img src="/blog_media/200904/panorama_poster_08.jpg" width="160" height="90" alt="view 'Palm beach avenue beach (1)' panorama" border="0" /></a></td>
<td style="padding-bottom:10px;"><a href="http://jaysenmarais.com/blog/panoramas/#palm_beach_avenue_beach_2"><img src="/blog_media/200904/panorama_poster_09.jpg" width="160" height="90" alt="view 'Palm beach avenue beach (2)' panorama" border="0" /></a></td>
</tr>
</table>
<p>Hopefully I&#8217;ll have more to add to my <a href="http://jaysenmarais.com/blog/panoramas/">panoramas page</a> soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaysenmarais.com/blog/20090410/spherical-panoramas/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
<enclosure url="http://panoramas.jaysenmarais.com.s3.amazonaws.com/01_6500_sand_blow_summit.mov" length="2720186" type="video/quicktime" />
<enclosure url="http://panoramas.jaysenmarais.com.s3.amazonaws.com/01_1800_500_sand_blow_summit.mov" length="326740" type="video/quicktime" />
		</item>
		<item>
		<title>Making nodal panoramas that don&#8217;t suck</title>
		<link>http://www.jaysenmarais.com/blog/20080402/making-linear-panoramas-that-dont-suck</link>
		<comments>http://www.jaysenmarais.com/blog/20080402/making-linear-panoramas-that-dont-suck#comments</comments>
		<pubDate>Tue, 01 Apr 2008 22:57:00 +0000</pubDate>
		<dc:creator>jaysen</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[autopano-sift]]></category>
		<category><![CDATA[blending]]></category>
		<category><![CDATA[composite image]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[hugin]]></category>
		<category><![CDATA[panorama]]></category>
		<category><![CDATA[panotools]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[ptstitcher]]></category>
		<category><![CDATA[stitching]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[walkthrough]]></category>

		<guid isPermaLink="false">http://jaysenmarais.com/blog/20080402/making-linear-panoramas-that-dont-suck/</guid>
		<description><![CDATA[Update: 6th Feb 2010, changed &#8216;linear&#8217; in title to &#8216;nodal&#8217; due to comment feedback]]></description>
			<content:encoded><![CDATA[<p><b>Update: 6th Feb 2010, changed &#8216;linear&#8217; in title to &#8216;nodal&#8217; due to comment feedback</b</p>
<p>Most modern digital cameras (even phones) have a &#8216;panorama photo&#8217; mode, allowing you to take multiple photos which are then magically combined into a single large photograph. Sounds great, but there&#8217;s a problem. These composite images (whether produced in-camera or using &#8216;automatic stitching&#8217; programs) look OK at first glance, but are typically full of smudges, ghosts, morphing people and objects sprouting from thin air.</p>
<p><center><img src="http://jaysenmarais.com/blog_media/200803/hugin_10.jpg" alt="Issues with automatic panorama stitching software" /></center></p>
<p>So where exactly is is all going wrong? In theory, the basic steps required to create convincing composite images (including panoramas) are:</p>
<ol>
<li><b>Align the images</b> &mdash; Ordering and placing images by examining their overlaps.</li>
<li><b>Correct for <a href="http://en.wikipedia.org/wiki/Angle_of_view">angle of view</a></b> &mdash; Think &#8216;fisheye&#8217;, but subtler.</li>
<li><b>Remap images to compensate for varying distance</b> &mdash; Closer subjects &#8216;move&#8217; more between shots than distant ones. This is fixed by identifying common &#8216;control points&#8217; then remapping the images so they overlap perfectly.</li>
<li><b>Blend images to hide image seams</b> &mdash; Obscuring (typically softening) the boundaries between images to create the illusion of a single image.</li>
</ol>
<p>Photostitching software typically gets steps 1 and 2 spot on, but can&#8217;t hold a candle to humans when it comes to pattern recognition (the secret sauce behind steps 3 and 4). If we want good composite images we have to hijack the identification of control points and eventually produce a layered photoshop file so we can blend manually (to perfection).</p>
<h4>Pitfalls during shooting</h4>
<p>First we need to keep an eye out for things that often go pear-shaped during the shoot.</p>
<ul>
<li><b>Creeping Horizon</b> &mdash; Caused by gradually rotating the camera up/down between shots (when doing a horizontal pano).</li>
<li><b>Wavy horizons</b> &mdash; If the camera&#8217;s not perfectly level, the horizon will see-saw up &amp; down.</li>
<li><b>Moving foreground subjects</b> &mdash; People/cars/trees/etc moving between shots.</li>
<li><b>Moving photographer</b> &mdash; Wind, terrain and rampaging wild-life may interrupt your plans.</li>
<li><b>Rubbish/damaged lenses</b> &mdash; Cheap cameras have cheap lenses whose variations become glaringly obvious during stitching.</li>
<li><b>Varying &#8216;brightness&#8217;</b> &mdash; Not locking exposure results in adjacent shots with lighter or darker skies.</li>
<li><b>Varying &#8216;colour&#8217;</b> &mdash; Not locking white-balance (when multiple light sources present) can result in dramatically different colour between shots.</li>
<li><b>Changing light</b> &mdash; If clouds arrive halfway through shooting your panorama, give up or start again.</li>
</ul>
<h4>Tips for shooting</h4>
<ul>
<li>Use a <strong>tripod</strong></li>
<li><strong>Level your tripod</strong> (camera&#8217;s rotation axis should typically be perpendicular to the horizon).</li>
<li>Be <strong>aware of moving objects near</strong> the camera (remember to check 360&deg;). Fast moving objects are generally OK. It&#8217;s the slow moving object that cause headaches later on.</li>
<li>Take <strong>more shots</strong> than the camera recommends (only if using manual stitching). Using 2/3 overlap will give you a spare photoshop layer during blending.</li>
<li><strong>Be quick</strong>. Light and subjects will change during your shoot. Plan your panorama, do a dry run, then fly like the wind (but don&#8217;t forget the other tips).</li>
<li><strong>Lock any camera settings</strong> you can, leave the rest alone. Some cameras lock exposure and white balance in &#8216;panorama&#8217; mode (check the manual), but it&#8217;s up to you to keep focal length (zoom), aperture, focus and ISO constant.</li>
</ul>
<h4>Playing with pixels &mdash; stitching an &#8216;unstitchable&#8217; panorama</h4>
<p>All the apps mentioned in this section are available for Windows and OS X (linux too, though using gimp instead of photoshop). Also it&#8217;s worth pointing out that even though this post is about horizontal panoramas, these techniques can be be used to create any composite image (<a href="http://hugin.sourceforge.net/tech/imgs/venice_corr_enblend.jpg">blended tiled images</a>, <a href="http://hugin.sourceforge.net/tech/imgs/venice_noncorr.jpg">unblended tiled images</a>, spherical panoramas, <a href="http://www.tawbaware.com/maxlyons/gigapixel.htm">gigapixel images</a> etc).</p>
<ol>
<li>
<p><b>Shoot the images &amp; collect on PC</b> &mdash; I&#8217;m going to use images taken atop <a href="http://en.wikipedia.org/wiki/Gaisberg">Gaisberg mountain</a> near Salzburg, Austria. The images were shot on my <a href="http://www.dpreview.com/reviews/CanonG7/">Canon Powershot G7</a> in it&#8217;s <a href="http://www.canon.co.jp/imaging/mode/camera/stitch-e.html">Stitch Assist</a> mode (exposure &amp; white balance locked). To make things interesting I&#8217;ve chosen a set of images with a few of the common issues you may come across (no tripod, inconsistent position).
</p>
</li>
<li>
<p><img src="http://www.jaysenmarais.com/blog_media/200803/hugin_logo.gif" alt="hugin logo" align="right" style="margin-left: 10px;" /><b>Download and extract <a href="http://hugin.sourceforge.net/">Hugin</a></b> &mdash; Hugin is an ambitious open source (donation-ware) panorama creation GUI (cross-platform, written in c# under <a href="http://www.mono-project.com/Main_Page">mono</a>). It&#8217;s still beta so you may find the UI a little cryptic and glitchy, but you can&#8217;t complain given the price-tag (free).</p>
</li>
<li>
<p><b>Download and install <a href="http://user.cs.tu-berlin.de/~nowozin/autopano-sift/">autopano-sift</a> (optional)</b> &mdash; Autopano-sift is a helper program for Hugin which identifies control points in your sub-panorama images using some <a href="http://en.wikipedia.org/wiki/Scale-invariant_feature_transform">pretty hefty maths</a>. We will use autopano-sift to kick-start the control point detection process, but you can bypass autopano-sift and create all control points manually if you wish.</p>
</li>
<li>
<p><b>Open Hugin and load images</b> &mdash; When Hugin loads click the &#8216;load images&#8217; button and locate the images which make up your panorama (some camera naming schemes make this difficult so it&#8217;s best to collect them in a folder beforehand). Hugin may ask you to specify your cameras stated focal length (usually silk-screened around the lens itself) and 35mm equivalent (try <a href="http://www.dpreview.com">dpreview</a> or the manual).</p>
<p><center><img src="http://jaysenmarais.com/blog_media/200803/hugin_1.gif" alt="Hugin startup screen" /></center></p>
<p>Once Hugin has loaded your images, autopano-sift will appear (on first-run, Hugin may ask you to locate the autopano.exe).</p>
</li>
<li>
<p><b>Use autopano-sift to identify control points (optional)</b> &mdash; The autopano-sift UI has a few tweak-able parameters for the adventurous but for now just click &#8216;compute&#8217;.</p>
<p><center><img src="http://www.jaysenmarais.com/blog_media/200803/hugin_2.gif" alt="autopano-sift UI" /></center></p>
<p>Autopano-sift&#8217;s &#8216;PTO generation&#8217; process will kick off. This process may take a few minutes (depending on the size &amp; number of your images). Once completed, click &#8216;OK&#8217; and close autopano-sift.</p>
</li>
<li>
<p><b>The rough draft</b> &mdash; Hugin will use the control points generated by autopano-sift to align and distort your images. It will present its results in the &#8216;preview&#8217; window.</p>
<p><center><img src="http://www.jaysenmarais.com/blog_media/200803/hugin_3.gif" alt="initial panorama results" /></center></p>
<p>As you can see, there are some misaligments. These are to be expected (especially with dodgy source images like the ones I&#8217;m using) but unlike the automatic stitching software which would just blend over these cracks, we have the power to fix them.</p>
</li>
<li>
<p><b>Get to know the &#8216;control points&#8217; tab</b> &mdash; Close the preview window and navigate to the &#8216;control points&#8217; tab.</p>
<p><center><img src="http://www.jaysenmarais.com/blog_media/200803/hugin_4.gif" alt="hugin control points tab" /></center></p>
<p>The &#8216;control points&#8217; tab enables you to review, edit, delete and add control points to improve the stitching &amp; blending processes. Additionally, it gives a unique perspective on exactly why automated control point detection is so underwhelming. Main points:</p>
<ol>
<li>Existing control-points on both images (automatically generated by autopano-sift).</li>
<li>We&#8217;re only really interested in the area of overlap. Ideally there would be control points evenly distributed througout this entire overlap region.</li>
<li>The list of control points (automatic and manual).</li>
</ol>
</li>
<li>
<p><b>Manually tweaking control points</b> &mdash; The &#8216;control points&#8217; tab in the current build of Hugin (0.7 beta 4) has some frustrating UI glitches, but the following workarounds helped me:</p>
<ul>
<li>When <strong>editing existing control points</strong>, set the zoom factor to &#8217;200%&#8217;  (be sure to click them dead centre or Hugin will try to create a new control point, frustrating).</li>
<li>When <strong>adding new control points</strong>, set the zoom factor to &#8216;fit to window&#8217; then click on both images in turn, position the control points, click the &#8216;fine-tune&#8217; button and then the &#8216;add&#8217; button. repeat.</li>
</ul>
<p>Add a few control points for each troublesome image pair (evenly throughout the overlap area) then go to the &#8216;optimize&#8217; tab, choose &#8216;everything&#8217; and click the &#8216;optimize&#8217; button. Once the optimization process is complete, check the preview (ctrl-p on windows, cmd-P on mac) to see whether it&#8217;s made an improvement to the panorama. If there are still major breaks, tweak the control points as necessary.</p>
<p><center><img src="http://www.jaysenmarais.com/blog_media/200803/hugin_5.gif" alt="improved stitch" /></center></p>
<p>Here you can see the panorama preview is less &#8216;wavy&#8217;. Don&#8217;t worry too much about the rotation, we&#8217;ll fix this in photoshop.</p>
</li>
<li>
<p><b>Get <a href="http://www.all-in-one.ee/~dersch/">PTStitcher</a></b> &mdash; Although Hugin comes with a stitching engine (nona), we&#8217;ll use PTStitcher as it has better blending plus .psd output. Download the <a href="http://www.all-in-one.ee/~dersch/">PanoTools zip</a> and extract it. Copy the pano12.dll from the extracted folder into your Hugin folder. Copy the PTStitcher.exe app (from the Helpers folder in the extracted PanoTools folder) to the Hugin folder.</p>
</li>
<li>
<p><b>Creating a stitched (layered) psd file</b> &mdash; In Hugin, go to the &#8216;Stitcher&#8217; tab, change the &#8216;stitch the images&#8217; option to &#8216;into a layered photoshop file&#8217; and click &#8216;stitch now&#8217; (beware the psd file may be several hundred megabytes, hope you&#8217;ve got the RAM). Hugin may ask you to locate PTStitcher. If so point it to the copy you put in the Hugin folder.</p>
<p><center><img src="http://www.jaysenmarais.com/blog_media/200803/hugin_6.gif" alt="Hugin stitcher options" /></center>
</li>
<li>
<p><b>Final blending &amp; cropping in photoshop</b> &mdash; Upon opening the psd file in photoshop you&#8217;ll notice that the blend lines are pretty conspicuous. However, as each shot is a separate (masked) layer you can tweak each blend independently by editing the mask.</p>
<p><center><img src="http://www.jaysenmarais.com/blog_media/200803/hugin_7.gif" alt="blend issues" /></center></p>
<p>At this point you also have the opportunity to mask in/out moving foreground subjects and make other creative edits (i.e. duplicate people). If you took my advice and shot with 2/3 overlap you&#8217;ll have a spare layer to run wild with too. A few blending tips:</p>
<ul>
<li>Use broad diameter &#8216;soft&#8217; brushes to feather the masks in areas of sky.</li>
<li>Avoid straight lines in your masks (especially horizontal &amp; vertical lines). Human eyes will spot those straight away.</li>
<li>In areas of high detail use small diameter &#8216;harder&#8217; edged brushes (this avoid ghosting in the final image).</li>
<li>Hard edged subjects in the foreground make great (hard) mask boundaries</li>
</ul>
<p>After tweaking each of the seams the whole panorama becomes pretty convincing. This is the most rewarding part of the process, and you run the risk of wasting a lot of time <img src='http://www.jaysenmarais.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . In this example I decided to merge foreground characters from two different shots, but I left some easter eggs in there for anyone who&#8217;s really looking.</p>
<p><center><img src="http://www.jaysenmarais.com/blog_media/200803/hugin_8.gif" alt="resolved blend issues" /></center>
</li>
<li>
<p><b>The final cut</b> &mdash; To get rid of the &#8216;rising horizon&#8217; problem in this image set (a constant issue when shooting panoramas sans tripod) I&#8217;ve selectively cloned and distorted the middle foreground grass and left sky. The final image captures all the things I remember from that instant in one single image (the ultimate <a href="http://www.thefreedictionary.com/aide-memoire">aide mémoire</a>).</p>
<p><center><a href="http://www.flickr.com/photos/jaysenmarais/2392738256/sizes/l/"><img src="http://www.jaysenmarais.com/blog_media/200803/hugin_9.jpg" alt="final image" /></a></center>
</li>
</ol>
<p>The length of this post might make the process of manually assembling composite/panoramic images appear complex, but trust me, the second time&#8217;s a snap. Oh, and you&#8217;ll be the only kid on your street who&#8217;s panoramas don&#8217;t suck.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaysenmarais.com/blog/20080402/making-linear-panoramas-that-dont-suck/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

