Debian Codegraph @

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

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>ALE Version 0.7.x/0.8.x Technical Description</title>
5 <style type="text/css">
6 TABLE.ba { max-width: 678; text-align: center; padding-bottom: 15; padding-top: 5}
7 TABLE.inline { padding-right: 300; clear: left}
8 TD.text_table {padding-left: 2; padding-right: 2; border-width: 1}
9 H2 {clear: left}
10 P {max-width: none; padding-right: 300; clear: left}
11 BLOCKQUOTE {padding-right: 400 }
12 LI {max-width: 640; clear: left}
13 P.footer {max-width: none; width: auto; padding-left: 0}
14 P.header {max-width: none; width: auto; padding-left: 0}
15 HR.main {max-width: 640; clear: left; padding-left: 0; margin-left: 0}
16 HR.footer {clear: both}
17 </style>
18
19 </head>
20 <body>
21
22
23
24
25
26
27 <table align=right valign=top width=160>
28 <td valign=top height=600 width=160>
29 <a href="http://auricle.dyndns.org/ALE/">
30 <big>ALE</big>
31 <br>
32 Image Processing Software
33 <br>
34 <br>
35 <small>Deblurring, Anti-aliasing, and Superresolution.</small></a>
36 <br><br>
37 <big>
38 Local Operation
39 </big>
40 <hr>
41 localhost<br>
42 5393119533<br>
43 </table>
44
45
46
47
48 <p><b>[ <a href="../../tech/">Up</a> ]</b></p>
49 <h1>ALE Version 0.7.x/0.8.x Technical Description <!-- <small>(or the best approximation to date)</small> --> </h1>
50
51 <h2>Purpose</h2>
52
53 <p>This page discusses motivation, related work, models of program input,
54 renderers, and the alignment algorithm, but does not cover the 3D scene
55 reconstruction code in versions 0.7.2 and later. Note also that some changes
56 in 0.8.x might not yet be covered. For information on ALE program operation and
57 usage, see the User Manual for <a href="../ale-0.7.x-user/">0.7.x</a> or <a
58 href="../ale-0.8.x-user/">0.8.x</a>.</p>
59
60 <p><b>Note: This document uses HTML 4 character entities. &nbsp;Sigma is '&Sigma;'; summation is '&sum;'</b>.</p>
61
62 <h2>Motivation</h2>
63
64 <p>Several factors in the imaging pipeline can affect output, sometimes
65 degrading image quality, either individually or through combination. Lens
66 effects include barrel or pincushion distortion; the camera sensor and
67 electronics can produce blurring, signal aliasing, noise, quantization, and
68 non-linear effects; analog video signals can degrade in transmission; and
69 various compression techniques and digital enhancements on- or off-camera can
70 destroy image features. In some cases, a better image can be produced through
71 combining information contained in different images.</p>
72
73 <table>
74 <tr><td align=center><img src="conceptual_pipeline.png"></td></tr>
75 <tr><td align=center><i>Imaging Pipeline</i></td></tr>
76 </table>
77
78 <h2>Related Work</h2>
79
80 <p>Richard Hook and Andrew Fruchter's <a
81 href="http://www.cv.nrao.edu/adass/adassVI/hookr.html">drizzling technique</a> was designed
82 to combine dithered undersampled images. Previous versions of ALE supported this
83 technique; the current version supports an approximation.
84
85 <p>Steve Mann's work (e.g. <a href="http://wearcam.org/orbits/">here</a> and <a
86 href="http://wearcam.org/comparam.htm">here</a>), on spatial extents,
87 projective transformations, linear-colorspace image processing, and weighting
88 by certainty functions, motivated ALE's adoption of these features. A
89 modified, "one-sided" approach to certainty is used by ALE's Irani-Peleg
90 renderer, to better accommodate extremely bright features that exceed the range
91 of all input images. This approach is modified further in 0.8.0 to rely on
92 estimated (instead of measured) intensities, which may allow further reduction
93 of noise in some cases.
94
95 <p>ALE incorporates an iterative solver based on Michal Irani and Shmuel
96 Peleg's <a
97 href="http://www.wisdom.weizmann.ac.il/~irani/abstracts/superResolution.html">iterative
98 deblurring and super-resolution</a> technique. It has been extended to handle
99 convolutions occurring in tandem in different colorspaces, and has been
100 modified for certainty weighting.
101
102 <p>ALE's treatment of barrel distortion, using a polynomial in distance from
103 the image center, is based on that of Helmut Dersch's Panorama Tools. ALE's
104 approach adjusts the linear (first-order) coefficient so that the corners of
105 the transformed frame remain in place.</p>
106
107 <h2>Program Inputs</h2>
108
109 <p>Define an <i>image</i> to be a function mapping a subset of 2D Euclidean space to
110 an RGB colorspace; define a <i>discrete image</i> to be an image defined only
111 at coordinates having integral components; define a <i>spatial discretization</i>
112 to be an operator that restricts the domain of an image to a set of points
113 having integral components, thus producing a discrete image; define a <i>spatial
114 extension</i> to be an operator that extends the domain of a discrete image by
115 assigning the value of the nearest neighbor point.
116
117 <p>Ignoring noise and color quantization, ALE assumes that each input frame
118 <b>d<sub>x</sub></b> is a discrete image that can be obtained by applying a
119 sequence of operators, including transformations, exposure adjustment,
120 convolutions, gamma correction, spatial discretization, and spatial extension,
121 to some image <b>d</b>, as follows:
122
123 <blockquote><b>
124 d<sub>x</sub> = DNCGDLE<sub>x</sub>B<sub>x</sub>P<sub>x</sub>d
125 </b></blockquote>
126
127 Where:
128
129 <ul>
130 <li><b>P<sub>x</sub></b> is a projective transformation
131 <li><b>B<sub>x</sub></b> is a barrel/pincushion distortion transformation
132 <li><b>E<sub>x</sub></b> is linear exposure adjustment
133 <li><b>L</b> is a convolution in linear colorspace
134 <li><b>D</b> is a spatial discretization
135 <li><b>G</b> is gamma correction
136 <li><b>C</b> is a spatial extension
137 <li><b>N</b> is a convolution in non-linear colorspace
138 </ul>
139
140 (When ALE aligns using Euclidean transformations, <b>P<sub>x</sub></b> are
141 assumed to be Euclidean.)
142
143 <p>The presence of an extension operator between <b>G</b> and <b>N</b> is
144 suspect, and is somewhat inelegant in the case of digitally processed data, but
145 although such extension may require careful selection of <b>N</b>, it does not
146 restrict the set of possible models. It is only included because it creates a
147 parallelism between <b>N</b> and <b>L</b> that makes implementation easier.
148 In a more sophisticated implementation, it could be removed.</p>
149
150 <h2>Incremental Rendering</h2>
151
152 <p>If <b>L</b> and <b>N</b> are assumed to behave as identity operators, then each
153 pixel in each input frame corresponds to a single point in <b>d</b>. In this
154 case, it may be possible to apply filtering operations to input frame pixels
155 directly. One caveat, however, is that different parts of the output may be
156 sampled with unequal density in the input frame sequence; hence, a filtering
157 approach that is uniform over all regions could cause significant aliasing or
158 detail loss. Instead, ALE uses a non-uniform approach. If <b>I<sub>n</sub>(i,
159 j)</b> is an output pixel, at position <b>(i, j)</b>, updated for input frames
160 zero through <b>n</b>, then:
161
162 <blockquote>
163 <b>I<sub>n</sub>(i, j) = </b>&sum;<sub>n'&isin;0..n</sub>&sum;<sub>(i',j')&isin;Dom[d<sub>n'</sub>]</sub> <b>E<sub>n'</sub><sup>-1</sup>G<sup>-1</sup>d<sub>n'</sub>(i',j') * c(n, n', i, j, i', j', E<sub>0</sub>, ..., E<sub>n</sub>, G, P<sub>0</sub>, ..., P<sub>n</sub>, B<sub>0</sub>, ..., B<sub>n</sub>, d<sub>0</sub>, ..., d<sub>n</sub>)</b>
164 </blockquote>
165
166 <p>Where <b>c</b> is a <a href="chain/">rendering chain</a>. Note that for most
167 types of rendering chains, the above expression can be simplified considerably.
168
169 <h2>Irani-Peleg Rendering</h2>
170
171 ALE's Irani-Peleg renderer iteratively updates the final output of incremental
172 rendering, with update operator U:
173
174 <blockquote>
175 <b>J<sub>0</sub> = I<sub>final</sub></b>
176 <br>
177 <b>J<sub>1</sub> = UJ<sub>0</sub></b>
178 <br>
179 .
180 <br>
181 .
182 <br>
183 .
184 <br>
185 <b>J<sub>k</sub> = UJ<sub>k-1</sub></b>
186 </blockquote>
187
188 Where <b>U</b> is the <a href="ip_update_rule/">Irani-Peleg update rule</a>.
189
190 <h2>Spatial Extension and Space Complexity</h2>
191
192 <p>By default, the output image is of fixed size, limited to the extents of
193 <b>d<sub>0</sub></b>, the first image in the input sequence; the 'extend' option
194 specifies that output should accommodate all regions of all input images.
195
196 <p>When rendering an output image of fixed size, image storage space in memory
197 for all non-median rendering types is <i>O(1)</i> in the number of input frames
198 and <i>O(n)</i> in the number of pixels per input frame, since at most one
199 input image is loaded into memory at any time. For median-value rendering,
200 storage is O(n) in the number of input frames. When using projectively-aligned
201 input images, however, renderings that accommodate all regions of all input
202 images can generate arbitrarily large output for a bounded input size, and can
203 use an arbitrarily large amount of memory.
204
205 <h2>Alignment Algorithm</h2>
206
207 <p>Details on the alignment algorithm used in ALE are <a href="alignment/">here</a>.</p>
208
209 <h2>3D Scene Reconstruction</h2>
210
211 <p>The scene reconstruction code is still very experimental and is not
212 currently covered by this document. For more information, see the user manual
213 and source code.
214
215 <br>
216 <hr>
217 <i>Copyright 2002, 2003, 2004 <a href="mailto:[email protected]">David Hilvert</a></i>
218 <p class="footer">Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
219
220
221 </body>
222 </html>