File: pto_var.pod

package info (click to toggle)
hugin 2016.2.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 32,072 kB
  • ctags: 11,979
  • sloc: cpp: 116,753; ansic: 6,335; python: 1,517; perl: 577; sh: 168; xml: 102; makefile: 64
file content (93 lines) | stat: -rwxr-xr-x 2,684 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
=head1 NAME

pto_var - change image variables inside Hugin .pto project files

=head1 SYNOPSIS

B<pto_var> [options] --opt|--link|--unlink|--set "image variables list input.pto

=head1 DESCRIPTION

B<pto_var> is a command line tool, suitable for inclusion in shell scripts, and allows the change of image variables inside a Hugin .pto project file.
Optimisation variables can be set, altered, linked and unlinked,  
The following image variables are allowed:

=over

position: y, p, r, TrX, TrY, TrZ
lens parameters: v, a, b, c, d, e, g, t
photometric parameters: EeV, Er, Eb, Vb, Vc, Vd, Vx, Vy, Ra, Rb, Rc, Rd, Re (Vignetting and response parameter will treated as group.)

=back

The image numbers start with zero.
If the number is missing this applies to the variables of all images (In this case a special treatment applies to the position of the anchor image).
An exclamation mark before the variable will remove the variable from the list of variables to optimised.


=head1 OPTIONS

=over

=item B<-o|--output> = file.pto

Output Hugin PTO file. Default: <filename>_var.pto

=item B<-h|--help>

Shows help

=item B<--opt> varlist

 Change optimizer variables

=item B<--modify-opt>

   Modify the existing optimizer variables
   (without pto_var will start with an 
    empty variables set)
   Examples:
   --opt=y,p,r           Optimize yaw, pitch and roll of all images
                         (special treatment for anchor image applies)
   --opt=v0,b2           Optimize hfov of image 0 and barrel distortion
                         of image 2
   --opt=v,!v0           Optimize field of view for all images except
                         for the first image
   --modify-opt --opt=!v will not optimize field of view.
   --opt=!a,!b,!c        Don't optimise distortion (works only with
                         switch --modify-opt together)

=item B<--link varlist>

   Example:
   --link=v3          Link hfov of image 3
   --link=a1,b1,c1    Link distortions parameter for image 1

=item B<--unlink varlist>

   Examples:
   --unlink=v5        Unlink hfov for image 5
   --unlink=a2,b2,c2  Unlink distortions parameters for image 2

=item B<--set varlist>

   Examples:
   --set=y0=0,r0=0,p0=0  Resets position of image 0
   --set=Vx4=-10,Vy4=10  Sets vignetting offset for image 4
   --set=v=20            Sets the field of view to 20 for all images
   --set=y=val+20        Increase yaw by 20 deg for all images
   --set=v=val*1.1       Increase fov by 10 % for all images
   --set=y=i*20        Set yaw to 0, 20, 40, ...


=item B<--set-from-file filename>

			 Sets variables to new values
			 It reads the varlist from a file


=back

=head1 AUTHORS

Thomas Modes