'''pto_gen'' assembles a Hugin .pto project file that is suitable as input for

+

'''pto_gen''' assembles a [[Hugin]] .pto project file that is suitable as input for

further tools such as the [[cpfind]] control-point generator, or for opening

further tools such as the [[cpfind]] control-point generator, or for opening

with the Hugin panorama GUI itself. Functionality is similar to

with the Hugin panorama GUI itself. Functionality is similar to

Line 6:

Line 6:

The general use is

The general use is

pto_gen *.jpg

pto_gen *.jpg

−

This creates a project file from all jpg images in the current directory.

+

This creates a project file from all jpg images, in the same folder as the first photo.

−

The project file is named First file-last file.pto.

+

The project file is named ''first_file''-''last_file''.pto using the same convention as the Hugin GUI.

+

+

pto_gen was [http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/rev/6f19ad8ebbf3 added to Hugin] on December 7th 2011 which was after the 2011.04 release, hence it is only available in the development trunk. To get pto_gen try the [https://launchpad.net/~hugin/+archive/nightly nightly builds] or [[:Category:Software:Hugin:Compiling|compile from source]].

== Options ==

== Options ==

Line 20:

Line 22:

* '''-l | --linkstacks''' When given links the image positions in stacks.

* '''-l | --linkstacks''' When given links the image positions in stacks.

+

+

* '''--distortion''' Tries to load distortion data for the images from the lensfun database.

+

+

* '''--vignetting''' Tries to load vignetting data for the images from the lensfun database.

* '''-h | --help''' Display help.

* '''-h | --help''' Display help.

+

+

== Related links ==

+

+

[[Panorama_scripting_in_a_nutshell|Panorama scripting in a nutshell]] - pto_gen is useful in stitching panoramas from the command-line

+

+

[[Category:Software:Platform:Windows]]

+

[[Category:Software:Platform:Linux]]

+

[[Category:Software:Platform:Mac OS X]]

+

[[Category:Software:Hugin]]

Revision as of 12:37, 15 July 2012

pto_gen assembles a Hugin .pto project file that is suitable as input for
further tools such as the cpfind control-point generator, or for opening
with the Hugin panorama GUI itself. Functionality is similar to
match-n-shift.

The general use is

pto_gen *.jpg

This creates a project file from all jpg images, in the same folder as the first photo.
The project file is named first_file-last_file.pto using the same convention as the Hugin GUI.