Debian Codegraph @

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

raw
1 <html>
2 <title>Alignment</title>
3 <style type="text/css">
4 TABLE.ba { max-width: 678; text-align: center; padding-bottom: 15; padding-top: 5}
5 TABLE.inline { padding-right: 300; clear: left}
6 TD.text_table {padding-left: 2; padding-right: 2; border-width: 1}
7 H2 {clear: left}
8 P {max-width: none; padding-right: 300; clear: left}
9 BLOCKQUOTE {padding-right: 400 }
10 LI {max-width: 640; clear: left}
11 P.footer {max-width: none; width: auto; padding-left: 0}
12 P.header {max-width: none; width: auto; padding-left: 0}
13 HR.main {max-width: 640; clear: left; padding-left: 0; margin-left: 0}
14 HR.footer {clear: both}
15 </style>
16
17 <body>
18
19
20
21
22
23
24 <table align=right valign=top width=160>
25 <td valign=top height=600 width=160>
26 <a href="http://auricle.dyndns.org/ALE/">
27 <big>ALE</big>
28 <br>
29 Image Processing Software
30 <br>
31 <br>
32 <small>Deblurring, Anti-aliasing, and Superresolution.</small></a>
33 <br><br>
34 <big>
35 Local Operation
36 </big>
37 <hr>
38 localhost<br>
39 5393119533<br>
40 </table>
41
42
43
44
45 <p><b>[ <a href="../">Up</a> | <a href="error/">Error Function</a> ]</b></p>
46 <h1>Alignment</h1>
47
48 <p>ALE aligns each supplemental frame, in sequence, with an <i>alignment
49 reference image</i> constructed from previous frames. This page outlines
50 supported transformation classes, the algorithm used for alignment, and the
51 properties of the alignment algorithm. Following this is a discussion of
52 practical use of alignment options, including alignment classes and alignment
53 in the case of spatial extension.
54
55 <h2>Transformations</h2>
56
57 <p>ALE offers the following classes of transformations: </p>
58
59 <table border>
60 <tr><td>Translations</td><td>introduced in version 0.0.0</td>
61 <tr><td>Euclidean transformations (excluding reflections)</td><td>introduced in version 0.1.0</td>
62 <tr><td>Projective transformations</td><td>introduced in version 0.2.0</td>
63 <tr><td>Barrel distortion correction</td><td>introduced in version 0.7.0</td>
64 </table>
65
66 <h2>Algorithm</h2>
67
68 <p>Alignment proceeds by a deterministic search, beginning with an initial
69 transformation and modifying this transformation through a series of
70 perturbations.
71
72 <p>The initial transformation may be loaded from a file (when
73 <code>--trans-load</code> is used) or selected by default, or may be the
74 result of a global search (when <code>--gs</code> is used [0.7.1 only]). The
75 default initial transformation is either the transformation of the original
76 frame (when the <code>--identity</code> option is specified) or the most
77 recently aligned frame's final alignment (when the <code>--follow</code> option
78 is specified). When the initial transformation is loaded from a file, and if
79 the <code>--follow</code> option is specified, any changes to the alignment of
80 the previous frame are applied to the current frame at the outset.
81
82 <p>Once the initial transformation is determined, an initial perturbation
83 amount determines the step size by which each of the transformation parameters
84 are changed. In translational or Euclidean alignment, the perturbation amount
85 is applied to translation -- in units of pixels on the two image axes -- and
86 rotation -- in units of degrees about the image center. An additional
87 configurable upper bound, <code>--rot-upper</code>, constrains rotational
88 perturbation separately, preventing, e.g., a 360 degree perturbation of
89 rotation. In the case of projective alignment, the perturbation amount is
90 applied to the position of the corners of the projected quadrilateral in units
91 of pixels, where the projection is from the boundary of the supplemental frame
92 into the coordinate system of the alignment reference image. In the case of barrel
93 distortion correction, the perturbation amount is scaled by a multiplier
94 (<code>--bda-mult</code>) before being applied to each barrel distortion
95 coefficient (if any have been defined). The rate of change of barrel distortion
96 coefficients per frame can be limited with the option <code>--bda-rate</code>.
97
98 <p>If possible, transformation parameters are changed to decrease the <a
99 href="error/">error</a> between the supplemental frame and the alignment reference
100 image. The perturbation amount is halved whenever it is determined that no
101 parameter change of the current perturbation size improves the alignment of the
102 images. A lower bound on the perturbation amount determines when the alignment
103 is complete.
104
105 <!--
106
107 XXX: Even if this was true at one point, it appears to no longer be true.
108
109 <p>The order in which parameters are considered for change is specified in the
110 source code, and has the following property: No modified parameter is
111 considered for further change until all other parameters have been considered.
112 A consequence of this property is that parameters are always considered in a
113 fixed (round robin) order.
114 -->
115
116 <p>When multiple levels of detail are used, the error may be calculated on
117 images with a reduced level of detail. By default, this version of ALE uses a
118 level of detail twice as fine as the perturbation amount for perturbation
119 amounts larger than two, and full detail otherwise. This behavior can be changed
120 by adjusting the <code>--lod-max</code> option.
121
122 <!--
123
124 Is this useful to anyone?
125
126 <h2>Use of Alignment Classes</h2>
127
128 <p>ALE is likely to be most useful when corresponding regions of different
129 frames can be aligned by one of the available alignment classes.
130
131 <p>As described by Steve Mann in his work on <a
132 href="http://wearcam.org/orbits/">Video Orbits</a>, the projective
133 transformation offers particular versatility for camera imaging of (ideal
134 Lambertian) flat scenes.
135
136 <p>In camera imaging of scenes with depth, correction for orientation is almost
137 the same as for flat scenes, since, if focus and lens distortion is ignored, a
138 scene with depth is indistinguishable from a flat scene from the perspective of
139 a camera whose position is fixed.
140
141 <p>For sequences of camera images with small changes in position or
142 orientation, the projective transformations for alignment may closely
143 approximate Euclidean transformations; in this case, using Euclidean
144 transformations may achieve similar results and may require less time for
145 alignment, since there are fewer parameters to tweak (three parameters
146 instead of eight).
147
148 <p>In the case of flatbed scanners that preserve the relative height and width
149 of scans, any change in the position or orientation of flat objects can be
150 corrected using the Euclidean alignment class.</p>
151
152 <p>If a flatbed scanner does not preserve relative height and width, but does
153 preserve straight lines, then any change in the position or orientation of flat
154 objects can be corrected with the projective alignment class.
155
156 <p>However, even if a transformation is within the alignment class used, the
157 alignment algorithm may still be unable to approximate it.
158
159 <h2>Alignment in the case of Extended Renderings</h2>
160
161 <p>By using the --extend flag, ALE can be used to create image mosaics spanning
162 a spatial region larger than that represented by any single image in the frame
163 sequence. In these cases, if adjacent frames in the sequence tend to be more
164 closely aligned with each other than they are with the original frame, it may
165 be helpful to also use the --follow flag as a hint to the alignment algorithm.
166 </p>
167
168 -->
169
170
171 <br><br>
172 <small>
173 </small>
174
175 <hr>
176 <i>Copyright 2002, 2003, 2004 <a href="mailto:[email protected]">David Hilvert</a></i>
177 <p>Verbatim copying and distribution of this entire article is permitted in any
178 medium, provided this notice is preserved.
179 </body>
180 </html>