Debian Codegraph @

doc/html-original/ALE/download/ale-0.5.1-tech/index.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>ALE Technical Description</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 5393119533<br>
39 </table>
40
41
42
43 <p><b>[ <a href="../../tech/">Up</a> | <a href="merging">Merging</a> | <a href="drizzling">Drizzling</a> | <a href="enhance/">Enhancement</a> | <a href="iterative/">Irani-Peleg</a> | <a href="alignment/">Alignment</a> ]</b></p>
44 <h1>ALE Technical Description <!-- <small>(or the best approximation to date)</small> --> </h1>
45
46 <h2>Abstract</h2>
47
48 <p>ALE combines a series of input frames into a single output image possibly
49 having:</p>
50
51 <ul>
52 <li>Reduced noise.
53 <li>Reduced aliasing.
54 <li>Increased dynamic range.
55 <li>Increased spatial resolution.
56 <li>Increased spatial extents.
57 </ul>
58
59 <p>This page provides information on related work, models of program input, an
60 outline of renderers, and an overview of the algorithm used in ALE. </p>
61
62 <p><b>Note: This document uses PNGs and HTML 4 character entities.</b></p>
63
64 <h2>Related Work</h2>
65
66 ALE derives <a href="drizzling/">one</a> of its rendering techniques from a
67 method developed by Richard Hook and Andrew Fruchter for combining dithered
68 images.
69
70 <p>Steve Mann's work in <a href="http://wearcam.org/orbits/">Video Orbits</a>
71 on increased spatial extents and the use of projective transformations has
72 influenced features incorporated by ALE.
73
74 <p>ALE incorporates an iterative solver based on the <a
75 href="http://www.wisdom.weizmann.ac.il/~irani/abstracts/superResolution.html">work</a>
76 of Michal Irani and Shmuel Peleg on image reconstruction.
77
78 <h2>Models of Program Input</h2>
79
80 <h3>Definition of Discrete and Continuous Images</h3>
81
82 <p>Using <b>R<sup>+</sup></b> to represent the non-negative real numbers, a
83 <i>discrete image</i> <b>D</b> of size <b>(d<sub>1</sub>,
84 d<sub>2</sub>)</b> is a function
85
86 <blockquote>
87 <b>D: {0, 1, &hellip;, d<sub>1</sub> - 1}&times;{0, 1, &hellip;, d<sub>2</sub> - 1} &rarr; R<sup>+</sup>&times;R<sup>+</sup>&times;R<sup>+</sup></b>
88 </blockquote>
89
90 A <i>continuous image</i> <b>I</b> of size <b>(c<sub>1</sub>, c<sub>2</sub>)</b> is a function
91
92 <blockquote>
93 <b>I: [0, c<sub>1</sub>]&times;[0, c<sub>2</sub>] &rarr; R<sup>+</sup>&times;R<sup>+</sup>&times;R<sup>+</sup></b>
94 </blockquote>
95
96 <!--
97 An <i>infinite continuous image</i> <b>I</b> is a function
98
99 <blockquote>
100 <b>I: (-&infin;, &infin;)&times;(-&infin;, &infin;) &rarr; R<sup>+</sup>&times;R<sup>+</sup>&times;R<sup>+</sup></b>
101 </blockquote>
102 -->
103
104 <p>In this document, a member of the set
105 <b>R<sup>+</sup>&times;R<sup>+</sup>&times;R<sup>+</sup></b> is sometimes called an
106 <i>RGB triple</i>.
107
108 <h3>Definition of a Camera Snapshot</h3>
109
110 <p>A <i>camera snapshot</i> is defined as an <i>n</i>-tuple consisting of:</p>
111
112 <ul>
113 <li>A scene <i><b>S</b></i>.
114 <li>A pyramid <i><b>R</b></i> with rectangular base.
115 <li>A continuous image <i><b>I</b></i>.
116 <li>A discrete image <i><b>D</b></i>.
117 <li>A function <i><b>i</b></i> such that <i><b>i(S, R) = I</b></i>.
118 <li>A function <i><b>d</b></i> such that <i><b>d(I) = D</b></i>.
119 </ul>
120
121 <p><i><b>S</b></i> represents a physical scene.</p>
122
123 <p><i><b>R</b></i> represents the viewing volume of a physical camera.
124
125 <p>The value <i><b>I(x, y)</b></i> is the RGB triple representing the radiance
126 that would be recorded from <i><b>S</b></i> by a directional light sensor
127 located at the apex of <i><b>R</b></i> and aimed at the point <i><b>(x,
128 y)</i></b> on the base of <i><b>R</b></i>. The only constraint on the sensor
129 is that, given a fixed scene <i><b>S</b></i>, it must return a unique value
130 for a given position and orientation. This sensor is assumed to be the same
131 for all camera snapshots, and is called the <i>canonical</i> sensor.</p>
132
133 <center>
134 <table>
135 <tr><td align=center><img src="i.png">
136 <tr><td align=center><i>Positioning of the canonical sensor</i>
137 </table>
138 </center>
139
140
141 <p><i><b>D</b></i> represents the discrete pixel values reported by the
142 camera.</p>
143
144 <p>The composite function <i><b>composite(d, i)</b></i> represents the optical
145 and electronic properties of the camera.
146
147 <h3>Definition of a Camera Input Frame Sequence</h3>
148
149 <p>For positive integer <b>N</b>, a sequence of camera snapshots
150 <b>{ C<sub>1</sub>, C<sub>2</sub>, &hellip;, C<sub>N</sub> }</b>, defined by the
151 <i>n</i>-tuples <b>{ C<sub>j</sub> = (S<sub>j</sub>, R<sub>j</sub>, I<sub>j</sub>, D<sub>j</sub>,
152 i<sub>j</sub>, d<sub>j</sub>) }</b> is a <i>camera input frame sequence</i> if,
153 for all <b>j</b> and <b>j'</b>, <b>S<sub>j</sub> =
154 S<sub>j'</sub></b> and <b>i<sub>j</sub> = i<sub>j'</sub></b>.
155
156 <h3>Definition of a Diffuse Surface</h3>
157
158 Given a camera input frame sequence <b>{ C<sub>1</sub>, C<sub>2</sub>,
159 &hellip;, C<sub>N</sub> }</b>, defined by the <i>n</i>-tuples
160 <b>{&nbsp;C<sub>j</sub> = (S, R<sub>j</sub>, I<sub>j</sub>, D<sub>j</sub>, i,
161 d<sub>j</sub>)&nbsp;}</b>, a surface in <b>S</b> is <i>diffuse</i> if the
162 radiance of each point on the surface (as measured by the canonical sensor) is
163 the same for all views <b>R<sub>j</sub></b> from which the point is visible.
164
165 <h3>Definition of the Extended Pyramid</h3>
166
167 <p>If the view pyramids <b>{ R<sub>1</sub>, R<sub>2</sub>, &hellip;,
168 R<sub>N</sub> }</b> of a sequence of <b>N</b> camera input frames all share a
169 common apex and can be enclosed in a single rectangular-base pyramid <b>R</b>
170 sharing the same apex and having base edges parallel to the base edges of
171 <b>R<sub>1</sub></b>, then the smallest such <b>R</b> is the <i>extended pyramid</i>.
172 Otherwise, the extended pyramid is undefined.</p>
173
174 <p>If a camera input frame sequence has an extended pyramid <b>R</b>, then an
175 <i>extended image</i> is defined from <b>R</b> in a manner analogous to the definition
176 of the image <i><b>I</b></i> from the view pyramid <i><b>R</b></i> in the
177 definition of a camera snapshot.
178
179 <h3>Definition of a Projective Snapshot</h3>
180
181 <p>A <i>projective snapshot</i> is defined as an <i>n</i>-tuple consisting of:</p>
182
183 <ul>
184 <li>A continuous image <i><b>&Sigma;</b></i>.
185 <li>A continuous image <i><b>I</b></i>.
186 <li>A discrete image <i><b>D</b></i>.
187 <li>A projective transformation <i><b>q</b></i> such that <i><b>I = composite(&Sigma;, q)</b></i>
188 <li>A function <i><b>d</b></i> such that <i><b>d(I) = D</b></i>.
189 </ul>
190
191 <p><i><b>&Sigma;</b></i> represents the subject of the
192 snapshot (somewhat analogous to <i><b>S</b></i> in the camera snapshot).
193
194 <p><i><b>D</b></i> represents discrete pixel values reported by the physical
195 imaging device.
196
197 <h3>Definition of a Projective Input Frame Sequence</h3>
198
199 <p>For positive integer <b>N</b>, a sequence of projective snapshots <b>{
200 P<sub>1</sub>, P<sub>2</sub>, &hellip;, P<sub>N</sub> }</b>, defined by the
201 <i>n</i>-tuples <b>{ P<sub>j</sub> = (&Sigma;<sub>j</sub>, I<sub>j</sub>,
202 D<sub>j</sub>, q<sub>j</sub>, d<sub>j</sub>) }</b> is a <i>projective input
203 frame sequence</i> if, for all <b>j</b> and <b>j'</b>, <b>&Sigma;<sub>j</sub> =
204 &Sigma;<sub>j'</sub></b>.
205
206 <p>The first frame in the sequence of input frames is called the <i>original
207 frame</i>, and subsequent frames <i>supplemental frames</i>.
208
209 <h3>Construction of Projective Input Frame Sequences from Camera Input Frame Sequences</h3>
210
211 <p>From a camera input frame sequence, define a continuous image
212 <b>&Sigma;</b> as follows:
213
214 <ul>
215
216 <li>If an extended pyramid is defined for the set of camera input frames, then
217 <b>&Sigma;</b> is the associated extended image. <br><br>
218
219 <li>If an extended pyramid would be defined if all pyramids
220 <b>R<sub>j</sub></b> were translated to share a common apex, and the scene
221 <b>S</b> represents a physical configuration presenting to the camera only a
222 single planar, diffuse surface, then define <b>&Sigma;</b> so that there
223 exists some projective transformation <b>p</b> such that <b>&Sigma;(p(x))</b>
224 indicates the radiance at point <b>x</b> on the surface.
225
226 </ul>
227
228 If such a <b>&Sigma;</b> exists, then each camera input frame
229
230 <blockquote>
231 <b>C<sub>j</sub> = (S, R<sub>j</sub>, I<sub>j</sub>, D<sub>j</sub>, i,
232 d<sub>j</sub>)</b>
233 </blockquote>
234
235 admits a projective input frame
236
237 <blockquote>
238 <b>P<sub>j</sub> = (&Sigma;, I<sub>j</sub>, D<sub>j</sub>, q<sub>j</sub>, d<sub>j</sub>)</b>
239 </blockquote>
240
241 for some <b>q<sub>j</sub></b>, and these <b>{ P<sub>j</sub> }</b> form a
242 projective input frame sequence.
243
244 <h3>Definition of a Projective Renderer without Extension</h3>
245
246 <p>For a projective input frame sequence <b>{ P<sub>j</sub> = (&Sigma;,
247 I<sub>j</sub>, D<sub>j</sub>, q<sub>j</sub>, d<sub>j</sub>) }</b>, a
248 <i>projective renderer without extension</i> is an algorithm that outputs a
249 discrete image approximation of <b>I<sub>1</sub></b>. The assumptions used in
250 calculating the approximation vary across rendering methods.
251
252 <h3>Definition of a Projective Renderer with Extension</h3>
253
254 <p>For a projective input frame sequence <b>{ P<sub>j</sub> = (&Sigma;,
255 I<sub>j</sub>, D<sub>j</sub>, q<sub>j</sub>, d<sub>j</sub>) }</b>, a
256 <i>projective rendering method with extension</i> is an algorithm that outputs
257 a discrete image approximation of <b>&Sigma;</b>. The assumptions used in
258 calculating the approximation vary across rendering methods.
259
260 <h2>Renderers</h2>
261 <!--
262 <h3>Examples</h3>
263
264 Examples of rendering output are available on the <a href="../render/">rendering
265 page</a>.
266 -->
267
268 <h3>Extension</h3>
269
270 <p>All renderers can be used with or without extension (according to whether the
271 --extend flag is used). The target image for approximation (either
272 <b>&Sigma;</b> or <b>I<sub>1</sub></b>) is generically called <b>T</b>.
273
274 <h3>Renderer Types</h3>
275
276 <p>Renderers can be of incremental or non-incremental type. Incremental
277 renderers update the rendering as each new frame is loaded, while
278 non-incremental renderers update the rendering only after all frames have been
279 loaded.</p>
280
281 <p>Incremental renderers contain two data structures that are updated with each
282 new frame: an accumulated image <b>A</b> with elements <b>A<sub>x, y</sub></b>
283 and the associated weight array <b>W</b> with elements <b>W<sub>x, y</sub></b>.
284 The accumulated image stores the current rendering result, while the weight
285 array stores information about contributions to each accumulated image pixel.
286
287 <h3>Renderer Details</h3>
288
289 These pages offer detailed descriptions of renderers.
290
291 <ul>
292 <li>Incremental Renderers</li>
293 <ul>
294 <li><a href="merging/">Merging</a>
295 <li><a href="drizzling/">Drizzling</a>
296 </ul>
297 <li>Non-incremental Renderers</li>
298 <ul>
299 <li><a href="enhance/">High-frequency Enhancement</a>
300 <li><a href="iterative/">Irani-Peleg</a>
301 </ul>
302 </ul>
303
304 <h3>Rendering Predicates</h3>
305
306 <p>Renderers should output approximations of <b>T</b> when certain predicates
307 are satisfied. Not all of these predicates are required for all renderers, and
308 renderers may produce acceptable output even when their predicates are not
309 satisfied.</p>
310
311 <blockquote>
312 <table border cellpadding=5>
313 <tr>
314 <th>Predicate</td>
315 <th>Explanation</th>
316 <tr>
317 <td>Alignment</td>
318 <td>The projective input frame transformations <b>q<sub>j</sub></b> are known.</td>
319 <tr>
320 <td>Translation</td>
321 <td>All projective input frame transformations <b>q<sub>j</sub></b> are
322 translations.</td>
323 <tr>
324 <td>Point sampling with simple optics</td>
325 <td><b>d<sub>j</sub></b> assigns <b>D<sub>j</sub>(x) = I<sub>j</sub>(x)</b>.
326 <tr>
327 <td>Very large, uniform input sequence</td>
328 <td>A large number of input frames are provided, uniformly sampling the domain
329 of <b>T</b>.
330 <tr>
331 <td>Small radius</td>
332 <td>The radius parameter used with the rendering method is chosen to be
333 sufficiently small.
334 <tr>
335 <td>Barlett filter approximation</td>
336 <td>Convolution of <b>T</b> with a Bartlett filter remains an acceptable
337 approximation of <b>T</b>.
338 <tr>
339 <td>USM approximation</td>
340 <td>Applying the unsharp mask employed by the ALE --hf-enhance option to the
341 output of drizzling or merging produces an acceptable approximation of
342 <b>T</b>.
343 <tr>
344 <td>Correct Projection Filter</td>
345 <td>The projection filter used in Irani-Peleg rendering approximates
346 <b>d<sub>j</sub></b>.
347 <tr>
348 <td>Low Response Approximation</td>
349 <td>Frequencies having low response in the Fourier domain representations of
350 <b>d<sub>j</sub></b> need not be accurately reconstructed in the Fourier
351 domain representation of program output.
352 <tr>
353 <td>Convergence</td>
354 <td>Iterating Irani-Peleg on the input frames will eventually produce an
355 acceptable approximation of <b>T</b>, and the number of iterations chosen is
356 adequate to achieve this. This predicate may entail the very large, uniform
357 input sequence predicate.
358 </table>
359 </blockquote>
360
361 <h3>Summary of Rendering Predicates by Renderer</h3>
362
363 <p>The following table indicates which rendering predicates are associated with
364 each renderer. Note that renderers may produce acceptable output even when
365 these predicates are not satisfied. Justification for non-obvious entries in
366 this table should appear in the detailed descriptions; for entries where this
367 is not the case, the value given should be considered unreliable.</p>
368
369 <ul>
370 <li><b>M</b> = Merging
371 <li><b>D</b> = Drizzling
372 <li><b>H</b> = High-frequency Enhancement
373 <li><b>I</b> = Irani-Peleg Iterative Image Reconstruction
374 </ul>
375
376 <blockquote>
377 <table border cellpadding=5>
378 <tr>
379 <th>&nbsp;</td>
380 <th>M</th>
381 <th>D</th>
382 <th>H</th>
383 <th>I</th>
384 <tr>
385 <td>Alignment</td>
386 <td>X</td>
387 <td>X</td>
388 <td>&nbsp;</td>
389 <td>X</td>
390 <tr>
391 <td>Translation</td>
392 <td>X</td>
393 <td>&nbsp;</td>
394 <td>&nbsp;</td>
395 <td>&nbsp;</td>
396 <tr>
397 <td>Point sampling with simple optics
398 <td>X</td>
399 <td>X</td>
400 <td>&nbsp;</td>
401 <td>&nbsp;</td>
402 <tr>
403 <td>Very large, uniform input sequence
404 <td>X</td>
405 <td>X</td>
406 <td>&nbsp;</td>
407 <td>&nbsp;</td>
408 <tr>
409 <td>Small radius</td>
410 <td>&nbsp;</td>
411 <td>X</td>
412 <td>&nbsp;</td>
413 <td>&nbsp;</td>
414 <tr>
415 <td>Barlett filter approximation</td>
416 <td>X</td>
417 <td>&nbsp;</td>
418 <td>&nbsp;</td>
419 <td>&nbsp;</td>
420 <tr>
421 <td>USM approximation</td>
422 <td>&nbsp;</td>
423 <td>&nbsp;</td>
424 <td>X</td>
425 <td>&nbsp;</td>
426 <tr>
427 <td>Correct Projection Filter</td>
428 <td>&nbsp;</td>
429 <td>&nbsp;</td>
430 <td>&nbsp;</td>
431 <td>X</td>
432 <tr>
433 <td>Low Response Approximation</td>
434 <td>X</td>
435 <td>X</td>
436 <td>X</td>
437 <td>X</td>
438 <tr>
439 <td>Convergence</td>
440 <td>&nbsp;</td>
441 <td>&nbsp;</td>
442 <td>&nbsp;</td>
443 <td>X</td>
444 </table>
445 </blockquote>
446
447 <h3>Space Complexity</h3>
448
449 Image storage space in memory for all renderers without extension is
450 <i>O(1)</i> in the number of input frames and <i>O(n)</i> in the number of pixels per
451 input frame. The worst-case image storage space in memory for all renderers
452 with extension is <i>O(n)</i> in the size of program input.
453
454 <h2>Algorithm</h2>
455
456 <p>First, a <a href="merging/">merging</a> renderer is instantiated. Then,
457 program flags are used to determine what other renderers should be
458 instantiated.
459
460 <p>An iterative loop supplies to the renderers each of the frames in sequence,
461 beginning with the original frame. The <a href="drizzling/">drizzling</a> and
462 <a href="merging/">merging</a> renderers are incremental renderers, and
463 immediately update their renderings with each new frame, while the <a
464 href="enhance/">high-frequency enhancement</a> and <a
465 href="iterative/">Irani-Peleg</a> renderers do not act until the final frame
466 has been received.
467
468 <p>In the case of the incremental renderers, the original frame is used without
469 transformation, and each supplemental frame is transformed according to the
470 results of the <a href="alignment/">alignment</a> algorithm, which aligns each
471 new frame with the current rendering of the <a href="merging/">merging</a>
472 renderer.
473
474 <p>Once all frames have been aligned and merged, non-incremental renderers
475 produce renderings based on input frames, alignment information, and the output
476 of other renderers.</p>
477
478 <small>
479
480 </small>
481
482 <br>
483 <hr>
484 <i>Copyright 2002, 2003 <a href="mailto:[email protected]">David Hilvert</a></i>
485 <p>Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
486
487
488 </body>
489 </html>