You are on page 1of 7
Home Download Screenshots Tutorials Documentation Gallery Tech Links Community SourceForge Launchpad

Hugintutorial—Thenewfeaturesinhugin­2015.0.0

Hugin­2015.0.0providesanumberofnewfeatures.

Overview

1.UserscannowgenerateandremovecontrolpointsfromanareaintheFastPreviewwindow.

2.Hugin_executoristhenewtoolforthestitchingtask,replacingthemakefilestitchingengine.

3.Wenowhaveourowndatabaseanddataminingapproachforstoringandloadinglensdata.

4.Automaticexposurestackdetectionhasbeenaddedandthereisanoptiontounlinkimagepositionwhencreatingstacks.

5.Huginnowhasit'sownblender,verdandi, basedonawatershedalgorithm.

6.PTBatcherGUInowshowsthethumbnailswhensearchingforimagesindirectories.

Wewillhaveaquicklookathowthesenewfeaturescanbeused.

ControlpointeditingintheFastPreviewwindow

WiththenewcontrolpointeditingtoolinthePreviewtabifusingtheSimpleinterface,orintheFastPanoramapreviewwindowifusingtheAdvancedorExpert

interface,wecandirectlyremoveoraddcontrolpointsusingthemouse.

ThePreviewtabhasanewicon,EditCP,andclickingonthisiconallowsustousethemousetodragoutaboxtoenclosesomebadcontrolpoints,orenclosean

areawherewewantsomenewcontrolpoints.Wesimplyselectremovecontrolpointsorcreatecontrolpointshere.

AfterremovingorcreatingCPs,huginwillaskifyouwanttore­optimize.Anoptionisprovidedinthe File­>PreferencesMisc

AfterremovingorcreatingCPs,huginwillaskifyouwanttore­optimize.AnoptionisprovidedintheFile­>PreferencesMisctabtoallowyoutosetAskuser,

Re­optimizepanoramaorDon'toptimizepanoramawheneveryoucreateordeleteCPsusingtheEditCPfunction.

Hugin_executor

Hugin_executor

ThisnewtoolisbehindthescenesifyouusetheGUIstodoyourstitching.Ifyouusescriptstoassembleandstitchyourpanoramas,youwillneedtoeditthose

scriptstoremoveanyreferencestopto2mkandmake,andaddacalltothenewhugin_executor.

Thisbashshellscript(forlinuxorOSX,butuseofthecommandswouldbesimilarinbatchfilesforWindows)willstitchflatscannedimages.Thescriptshowshow

wewouldhavedoneitusingtheoldmakefilestitchingengineinearlierversionsofhugin.

#! /bin/sh

# hugin command tools script to stitch scanned images, fov unknown

# use of fov >= 10 should be OK, could simply set FOV=10

# Terry Duell 2013, 2014, 2015

# usage

run‐scan‐pto_var.sh

outputprefix fov

#get the output file prefix

Prefix=$1

# get the fov

FOV=$2

pto_gen ‐‐projection=0 ‐‐fov=$FOV ‐o project.pto scan‐1.jpg scan‐2.jpg pto_lensstack ‐o project1.pto ‐‐new‐lens i1 project.pto cpfind ‐o project1.pto ‐‐multirow project1.pto cpclean ‐o project2.pto project1.pto linefind ‐o project3.pto project2.pto pto_var ‐o setoptim.pto ‐‐opt TrX,TrY,TrZ,r,Eev,Ra,Rb,Rc,Rd,Re,!TrX0,!TrY0,!TrZ0,!r0,!Eev0,!Ra1,!Rb1,!Rc1,!Rd1,!Re1 project3.pto autooptimiser ‐n ‐o autoptim.pto setoptim.pto

pano_modify ‐‐projection=0 ‐‐fov=AUTO ‐‐center ‐‐canvas=AUTO ‐‐crop=AUTO ‐o autoptim2.pto autoptim.pto pto2mk ‐o project.mk ‐p $Prefix autoptim2.pto make ‐f project.mk all

andtomodifythescripttousehugin_executor,

simplycommentordeletethelasttwolinesandaddacalltohugin_executor.

#pto2mk ‐o project.mk ‐p $Prefix autoptim2.pto #make ‐f project.mk all hugin_executor ‐s ‐p $Prefix autoptim2.pto

Hugin_executorcanalsobeusedtoruntheassistantonthecommandline:hugin_executor ‐‐assistant ‐o project.pto project.ptoThiswasnotpossiblewith

pto2mk.

Youcanenterhugin_executor­h,ormanhugin_executor(linuxandOSX)inaconsoleorterminalwindowtoseethecommandusageandoptions.

Lensdatabase

Huginnowhasitsowncameraandlensdatabase,andhugin_lensdbisthemaintenancetool.

Lensdataisautomaticallyaddedtothedatabasewhenstitchingaprojectfilefromhugin.Datacanalsobemanuallyaddedtothedatabasefromhuginandfrom

Calibrate_Lens_GUI.

Lensdatacanbeappliedtoaprojectinthesamemanneraspreviously,inthePhotostab,selectanimagewithrightmousetobringupthecontextmenuandselect

Lens­>Loadlensfromlensdatabase.

Fordatabasemaintenanceseehugin_lensdb­h,ormanhugin_lensdb(LinuxandOSX)fordetailsonusage.

Stackdetection

Whenyouloadimages(Photostab,Addimages),huginnowlooksatnumberofimagesandthevariationinEVvaluestodetermineifyouareloadingexposure

stacks,andwillautomaticallyassignstacks.

Whenhugindetectsstacksintheimagestobeloaded,adialogboxwillbeopenedaskingforguidance.

Verdandi,thebuilt­inblender

Verdandi,thebuilt­inblender

Huginnowhasitsownbuiltinblender,Verdandi,basedonawatershedalgorithm.Verdandihasbeenincorporatedintonona.Itisautomaticallyusedbynona

withtheoutputformat(‐mswitch)TIFF,JPEGorPNG.

VerdandicanbeselectedasthedefaultblenderinthePreferences­Stitchingtab,bychoosingbuiltin.

Youarealsoabletoswitchtheblenderforaparticularproject,byselecting builtin inthe Stitcher tab

Youarealsoabletoswitchtheblenderforaparticularproject,byselectingbuiltinintheStitchertab

Ifyouassembleandstitchyourpanoramasusingscripts,youcanselect verdandi astheblenderbyusing pano_modify ,asfollows

Ifyouassembleandstitchyourpanoramasusingscripts,youcanselectverdandiastheblenderbyusingpano_modify,asfollows

pano_modify ‐‐blender=INTERNAL ‐o out.pto in.pto

Youcanenterpano_modify­h,ormanpano_modify(LinuxandOSX)inaconsoleorterminalwindowtoseethecommandusageandoptions.

Verdandicanalsostartedasownprogramverdandi ‐o output.tif input1.tif input2.tif

PTBatcherGUI

PTBatcherGUIcansearchindirectoriesforimageswhichbelongstoapanoramabylookingattheEXIFdatasinceHugin2011.4(inmenuFile>Search directory

for

>Images).ThisfunctionhasbeenextendedinHugin2015.0.Itshowsnowsomemetadataoftheimagesandthepreviewthumbnailoftheimagesdirectlyin

thedialog.

TutorialpreparedbyTerryDuellMay2015

TutorialpreparedbyTerryDuellMay2015