File: fulla.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 (146 lines) | stat: -rwxr-xr-x 3,733 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146


=head1 NAME

fulla - Correct lens distortion, vignetting and chromatic aberration

=head1 SYNOPSIS

B<fulla> [options] I<inputfile(s)>


=head1 DESCRIPTION

Apply radial or flat-field vignetting correction as well as geometrical radial
distortion and transversal chromatic aberration correction.

fulla can be used to batch correct a large number of files. Radial distortion coefficients can be read from a lens database.

Vignetting correction is done the same way as described in the nona script file documentation, or from lens database.
Vignetting correction can be done based on a flat-field or a radial scaling.

Vignetting correction by flat-field division:
                        I = I / c,    c = flat-field / mean(flat-field)

Radial vignetting correction:
                        I = I / c,    c = a + b*r^2 + c*r^4 + d*r^6


The radial distortion correction is identical to the one implemented by PanoTools:

r_new = a*r^4 + b*r^3 + c*r^2 + d*r   [1]

Since transversal chromatic aberrations (TCA) leads to differently scaled objects in the
red, green and blue channel, it can be corrected by scaling the red and blue channel
so that they match the green channel. Most applications, like Photoshop or Picture Window Pro
offer TCA correction by linear scaling. This is equal to varying the d parameter in equation [1].

See http://hugin.sf.net/tutorials/tca for a method to determine these parameters.


=head1 OPTIONS

=over

=item B<--green=db|a:b:c:d>

Correct radial distortion coefficient for all channels, (a, b, c, d)
Specify 'db' for database lookup or the 4 coefficients a:b:c:d

=item B<--blue=db|a:b:c:d>

Correct radial distortion coefficients for blue channel, (a, b, c, d). This is
applied on top of the B<--green> distortion coefficients, use for TCA corr
Specify 'db' for database lookup or the 4 coefficients a:b:c:d

=item B<--red=db|a:b:c:d>

Correct radial distortion coefficients for red channel, (a, b, c, d). This is
applied on top of the B<--green> distortion coefficients, use for TCA corr
Specify 'db' for database lookup or the 4 coefficients a:b:c:d


=item B<--camera-maker=Maker>

Camera manufacturer, for database query

=item B<--camera-model=Cam>

Camera name, for database query

=item B<--lensname=Lens>

Lens name, for database query

=over

Specify --camera-maker and --camera-model for fixed lens cameras or --lensname for interchangeable lenses.

=back

=item B<--focallength=50>

Specify focal length in mm, for database query

=item B<--aperature=3.5>

Specify aperture for vignetting data database query

=item B<--dont-rescale>

Do not rescale the image to avoid black borders.

=item B<--flatfield=filename>

Vignetting correction by flatfield division
I = I / c, c = flatfield / mean(flatfield)

=item B<--vignetting=db|a:b:c:d>

Correct vignetting (by division)
Specify db for database look up or the the 4 coefficients a:b:c:d
I = I / ( a + b*r^2 + c*r^4 + d*r^6)

=item B<--linear>

Do vignetting correction in linear color space

=item B<--gamma=value>

Gamma of input data. 
Used for gamma correction before and after flatfield correction

=item B<threads=n>

Number of threads that should be used

=item B<-h|--help>

Display help

=item B<--output=name>

Set output filename. If more than one image is given, the name will be used as suffix.
(default suffix: _corr)

=item B<--compression=value>

Compression of the output files.
For jpeg output: 0-100
For tiff output: PACKBITS, DEFLATE, LZW

=item B<--offset=X:Y>

Horizontal and vertical shift

=item B<--verbose>

Verbose

=back


=head1 AUTHORS

Written by Pablo d'Angelo. Also contains contributions from Douglas Wilkins, Ippei Ukai, Ed Halley, Bruno Postle, Gerry Patterson, Brent Townshend and Thomas Modes.