Debian Codegraph @

doc/html-original/ALE/download/ale-0.7.x-user/alignment/file/index.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>ALE User Manual: Transformation Data Files</title>
5
6 <style type="text/css">
7 TABLE.ba { max-width: 678; text-align: center; padding-bottom: 15; padding-top: 5}
8 TABLE.inline { padding-right: 300; clear: left}
9 TD.text_table {padding-left: 2; padding-right: 2; border-width: 1}
10 H2 {clear: left}
11 P {max-width: none; padding-right: 300; clear: left}
12 BLOCKQUOTE {padding-right: 400 }
13 LI {max-width: 640; clear: left}
14 P.footer {max-width: none; width: auto; padding-left: 0}
15 P.header {max-width: none; width: auto; padding-left: 0}
16 HR.main {max-width: 640; clear: left; padding-left: 0; margin-left: 0}
17 HR.footer {clear: both}
18 </style>
19 </head><body>
20
21
22
23 <table align=right valign=top width=160>
24 <td valign=top height=600 width=160>
25 <a href="http://auricle.dyndns.org/ALE/">
26 <big>ALE</big>
27 <br>
28 Image Processing Software
29 <br>
30 <br>
31 <small>Deblurring, Anti-aliasing, and Superresolution.</small></a>
32 <br><br>
33 <big>
34 Local Operation
35 </big>
36 <hr>
37 localhost<br>
38 2684415918<br>
39 </table>
40
41
42
43 <p><b>[ <a href="../">Up</a> ]</b></p>
44 <h1>ALE Transformation Data Files</h1>
45
46 Transformation data files are useful when performing alignment in several
47 passes or refining rendering options, and are necessary for specifying
48 barrel/pincushion distortion parameters. They also offer a way to manually
49 specify alignment when ALE cannot automatically align images.
50
51 <h2>Multiple-pass alignment</h2>
52
53 To align images in multiple passes, load the saved results of each previous
54 pass, as follows:
55
56 <pre>
57 $ ale --trans-save=a.t &lt;first pass arguments&gt;
58 $ ale --trans-load=a.t --trans-save=b.t &lt;second pass arguments&gt;
59 $ ale --trans-load=b.t --trans-save=c.t &lt;third pass arguments&gt;
60 .
61 .
62 .
63 </pre>
64
65 <h2>Rendering option refinement</h2>
66
67 To refine rendering options using the same alignment, first save the alignment
68 for the first option set, and then load the saved alignment information with
69 each subsequent option set, setting the perturbation upper bound to zero to
70 prevent a new alignment pass from occurring:
71
72 <pre>
73 $ ale --trans-save=a.t &lt;first option set&gt;
74 $ ale --trans-load=a.t --perturb-upper=0 &lt;second option set&gt;
75 $ ale --trans-load=a.t --perturb-upper=0 &lt;third option set&gt;
76 .
77 .
78 .
79 </pre>
80
81 <h2>Alignment file syntax (version 2)</h2>
82
83 There are two varieties of alignment file syntax that are both read and written
84 by ALE 0.7.0. The most basic of these is version 2. Version 3 is slightly
85 more complex, and is covered in the next section.
86
87 At the highest level, version 2 transformation data files contain the following
88 components: (a) a version command, and (b) a sequence of transformation
89 commands, one for each supplemental frame. Each line of text should contain at
90 most one command, between which optional comments may be interspersed. A
91 transformation command can be Euclidean, projective, or default. Euclidean and
92 projective commands take several arguments, including the width and height of
93 the supplemental frame. Default commands take no arguments. Commands are
94 outlined in more detail below.
95
96 <h3>Version command</h3>
97
98 <p>The version 2 version command is as follows:</p>
99
100 <pre>
101 V 2
102 </pre>
103
104 <h3>Euclidean commands</h3>
105
106 <p>The structure of a Euclidean command is as follows:</p>
107
108 <pre>
109 E &lt;image width&gt; &lt;image height&gt; &lt;x-offset&gt; &lt;y-offset&gt; &lt;rotation-angle&gt;
110 </pre>
111
112 <h3>Projective commands</h3>
113
114 <p>Projective commands map the four corners of the supplemental frame to four
115 points in the rendering coordinate system:</p>
116
117 <pre>
118 P &lt;image width&gt; &lt;image height&gt; &lt;top-left-x&gt; &lt;top-left-y&gt; &lt;blx&gt; &lt;bly&gt; &lt;brx&gt; &lt;bry&gt; &lt;trx&gt; &lt;try&gt;
119 </pre>
120
121 <h3>Default commands</h3>
122
123 Default commands can be explicitly written as follows:
124
125 <pre>
126 D
127 </pre>
128
129 Alternatively, if there are more frames than alignment commands (euclidean,
130 projective, or default), then the last supplemental frames in the frame
131 sequence will be assigned the default command.
132
133 <h3>Comments</h3>
134
135 Comments can be inserted with the following syntax:
136
137 <pre>
138 # This comment extends to the end of this line. I can write anything I want here.
139 </pre>
140
141 <h2>Alignment file syntax (version 3)</h2>
142
143 Version 3 syntax is required for specifying transformations for the original
144 frame, and for specifying barrel/pincushion distortion parameters.
145
146 <p>In version 3, the first transformation command is associated with the
147 original frame, instead of being associated with the first supplemental frame.
148 Also, barrel/pincushion distortion commands can precede each projective,
149 Euclidean, or default command.
150
151 <h3>Version command</h3>
152
153 <p>The version 3 version command is as follows:</p>
154
155 <pre>
156 V 3
157 </pre>
158
159 <h3>Barrel/pincushion distortion command</h3>
160
161 In version 3, barrel/pincushion distortion commands are supported. Distortion
162 is modeled as a transformation affecting the distance of image features from the
163 image center. The distorted distance is expressed as a polynomial function of
164 the undistorted distance. Zeroth and first order coefficients are fixed or
165 automatically determined; additional coefficients can be specified explicitly,
166 using the following syntax:
167
168 <pre>
169 B &lt;n&gt; &lt;coefficient 2&gt; &lt;coefficient 3&gt; ... &lt;coefficient n+1&gt;
170 </pre>
171
172 <p>Barrel/pincushion distortion commands should precede the projective, Euclidean,
173 or default transformation command for the corresponding frame.</p>
174
175 <br>
176 <hr>
177 <i>Copyright 2003, 2004 <a href="mailto:[email protected]">David Hilvert</a></i>
178 <p>Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
179
180
181 </body>
182 </html>