From: <bru...@us...> - 2009-12-12 12:19:03
|
Revision: 4784 http://hugin.svn.sourceforge.net/hugin/?rev=4784&view=rev Author: brunopostle Date: 2009-12-12 12:16:39 +0000 (Sat, 12 Dec 2009) Log Message: ----------- Unfinished tutorial... Added Paths: ----------- htdocs/tutorials/surveying/ htdocs/tutorials/surveying/P1000693-small.jpg htdocs/tutorials/surveying/P1000693.JPG htdocs/tutorials/surveying/en.shtml htdocs/tutorials/surveying/render-detail.png htdocs/tutorials/surveying/render-ground-level.png htdocs/tutorials/surveying/telegraph-45.jpg htdocs/tutorials/surveying/telegraph-90.jpg htdocs/tutorials/surveying/telegraph-up.jpg htdocs/tutorials/surveying/telegraph-verticals-horizontals.jpg htdocs/tutorials/surveying/trace-45.jpg htdocs/tutorials/surveying/trace-90.jpg htdocs/tutorials/surveying/trace-up.jpg htdocs/tutorials/surveying/trace-verticals-horizontals.jpg htdocs/tutorials/surveying/wireframe.png Added: htdocs/tutorials/surveying/P1000693-small.jpg =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/P1000693-small.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/P1000693.JPG =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/P1000693.JPG ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/en.shtml =================================================================== --- htdocs/tutorials/surveying/en.shtml (rev 0) +++ htdocs/tutorials/surveying/en.shtml 2009-12-12 12:16:39 UTC (rev 4784) @@ -0,0 +1,90 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <title>Hugin tutorial — Surveying buildings</title> +<style media="screen" type="text/css" title="Screen style sheet"> +@import url(/css/normal.css); +</style> +<link rel="icon" href="/css/icon.png" type="image/png" /> +</head> + +<body> + +<!--#include virtual="/ssi/menu.html"--> +<div class="content"> +<h1>Hugin tutorial — Measuring buildings</h1> + +<p><strong>This tutorial shows an advanced use of Hugin in combination with a +separate 3D CAD package, the example used is the creation of a complex 3d model +of a building from a single handheld photo.</strong></p> + +<p>Note: There used to be a great tool for doing this sort of thing called +<em>Canoma</em>, but it vanished a long time ago in a series of company +acquisitions. It is possible to do something similar completely in Sketchup, +but with Hugin we have a sophisticated and accurate lens model that gives us a +very high degree of accuracy, even if the process is slower overall.</p> + +<p>First here is a single photo, note that there has been no attempt to shoot +'straight-on', in fact the converging vertical and horizontal perspective will +be useful for fine-tuning the lens parameters. This doesn't have to be a +single shot you can get more detail with a panorama series, however the process +in Hugin is exactly the same:</p> + +<p><a href="P1000639.JPG"><img alt="Panasonic DMC-LX3" src="P1000693-small.jpg" /></a></p> + +<p>(Click on the image to download the original)</p> + +<p>The first thing to do is load the photo in Hugin, set horizontal and +vertical control points and optimise to get a straightened elevation of the +building. This process is described in detail by the <a +href="../perspective">Perspective Correction tutorial</a>, so I won't explain +it again here:</p> + +<p><img alt="Horizontals and verticals set in Hugin" src="telegraph-verticals-horizontals.jpg" /></p> + +<p>Now for this task we need Hugin to get both the lens barrel distortion and +horizontal angle of view right. So I have optimised <em>positions, barrel and +view</em> - Lots of horizontal and vertical points help correct barrel +distortion and the fact that picture has more than one vanishing point means +that Hugin can calculate horizontal angle of view with a single shot.</p> + +<p>You could also use a pre-calibrated lens setting and skip this extra +optimisation step completely. In fact Hugin reads the EXIF FoV as 73.7° and +optimisation determined that it is 70.8° - So Hugin is close enough already.</p> + +<p>The next bit requires a 2D vector drawing tool, I used proprietary CAD +software, but anything that allows you to trace lines over an image will do, +such as <a href="http://inkscape.org/">Inkscape</a>.</p> + +<p>So here I am tracing only building features that are in planes parallel to +the view direction. Notice that I am treating each of the parallel planes +separately and drawing them in a different colour - As they are different +distances from the camera they each have a different scale and so can't be +connected in a useful way just yet:</p> + +<p><img alt="Drawing elevation elements in CAD" src="trace-verticals-horizontals.jpg" /></p> +<p><img alt="Yawed -90° in Hugin" src="telegraph-90.jpg" /></p> +<p><img alt="Section and insets traced in CAD" src="trace-90.jpg" /></p> +<p><img alt="Yawed -45° in Hugin" src="telegraph-45.jpg" /></p> +<p><img alt="Clock tower traced in CAD" src="trace-45.jpg" /></p> +<p><img alt="Pitched 90° in Hugin" src="telegraph-up.jpg" /></p> +<p><img alt="Plan elements traced in CAD" src="trace-up.jpg" /></p> +<p><img alt="Traced elements scaled and snapped together" src="wireframe.png" /></p> +<p><img alt="Part finished solid model overview" src="render-ground-level.png" /></p> +<p><img alt="Part finished solid model detail" src="render-detail.png" /></p> + + +45deg for cornices + +use same technique to establish camera position + +<p>This building is...</p> + +<p>Tutorial by <a href="mailto:bruno@postle.net">Bruno Postle</a> +December 2009</p> + +</div> + +</body> +</html> Added: htdocs/tutorials/surveying/render-detail.png =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/render-detail.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/render-ground-level.png =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/render-ground-level.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/telegraph-45.jpg =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/telegraph-45.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/telegraph-90.jpg =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/telegraph-90.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/telegraph-up.jpg =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/telegraph-up.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/telegraph-verticals-horizontals.jpg =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/telegraph-verticals-horizontals.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/trace-45.jpg =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/trace-45.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/trace-90.jpg =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/trace-90.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/trace-up.jpg =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/trace-up.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/trace-verticals-horizontals.jpg =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/trace-verticals-horizontals.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: htdocs/tutorials/surveying/wireframe.png =================================================================== (Binary files differ) Property changes on: htdocs/tutorials/surveying/wireframe.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |