Debian Codegraph @

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

raw
1 <html>
2 <title>Error Functions</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 </head><body>
17
18
19
20 <table align=right valign=top width=160>
21 <td valign=top height=600 width=160>
22 <a href="http://auricle.dyndns.org/ALE/">
23 <big>ALE</big>
24 <br>
25 Image Processing Software
26 <br>
27 <br>
28 <small>Deblurring, Anti-aliasing, and Superresolution.</small></a>
29 <br><br>
30 <big>
31 Local Operation
32 </big>
33 <hr>
34 localhost<br>
35 5393119533<br>
36 </table>
37
38
39
40 <p><b>[ <a href="../">Up</a> | <a href="mc/">Monte Carlo</a> ]</b></p>
41 <h1>Error Functions</h1>
42
43 <p>Error functions are used to determine whether a transformation is "good" or
44 not, and in particular, whether one transformation is better or worse than
45 another. In particular, a smaller error indicates a better transformation.
46
47 <!--
48 The error functions used by ALE are based on two principles:
49
50 <ol>
51 <li>A relatively small change in camera position or orientation should be
52 reflected by a small transformation.
53 <li>When a new frame is merged, the accumulated image should change as little
54 as possible.
55 </ol>
56 -->
57 <!--
58
59 <p>Since sufficiently large transformations can move a new frame so far that it
60 no longer overlaps the accumulated image, it is important that the alignment
61 process not mistakenly move images too far, although in principle it is
62 possible, as in the case of a chain-link fence, that two fairly similar images
63 do, in fact, represent areas that are spatially separated. This is the
64 motivation for the first criterion.
65
66 <p>The second criterion is based on the general idea that, if two inputs to ALE
67 look vaguely like a petunia, the output should look like a petunia also. Hence
68 it should typically be the case that the accumulated image not change much when
69 new frames are merged.
70
71 -->
72 <p>ALE defines error functions for each pixel of the accumulated image, and
73 also a comprehensive error function that summarizes the error over all
74 pixels.
75
76 <h3>Per-Pixel Error Functions</h3>
77
78 <p>Since differences in exposure may alter the absolute values of pixels even
79 in images that are perfectly aligned, ALE usually normalizes the images so that
80 overall image intensity matches. This normalization step does not affect the
81 pixel values contributing to the merged image, but it does affect the values
82 with which the per-pixel error function is calculated. (The normalization
83 step is skipped when --extend or --follow is specified.)
84
85 <!-- <p>(Alternatives to normalization exist, including the use of inner products; see
86 Steve Mann's paper, available on the website linked in footnote 1, for a
87 discussion of alignment approaches.) -->
88
89 <!--
90 <p>Based on principle 2, ALE calculates the difference between each accumulated
91 image pixel and the value with which it would be merged given a candidate
92 transformation. This latter value is the <i>overlapping value</i>, as
93 described in the section on <a href="../../merging/">merging</a>. This difference
94 is then raised by the error metric exponent, as specified by the --metric
95 option. The exponent defaults to 2.0 for ALE versions 0.1.0 and later, or 1.0
96 for version 0.0.0. Hence,
97 -->
98 <p>The per-pixel error function for pixel <i>(i, j)</i> in the accumulated
99 image <i>A</i>, frame <i>B</i>, and transformation <i>T</i>, is:
100
101 <p><blockquote>
102 <pre>
103 <i>p(i, j, A, B, T) = Abs( A(i, j) - B(T_inverse(i, j)) )<sup>metric_exponent</sup></i>
104 </pre>
105 </blockquote>
106
107 <p>where <i>Abs()</i> is the absolute value function and <i>B(T_inverse(i, j))</i>
108 is the overlapping value described in the <a href="../../merging/">merging</a> section.
109 If not specified by the --metric option, <i>metric_exponent</i> defaults to 2.0
110 for ALE versions 0.1.0 and later, or 1.0 for version 0.0.0.
111
112 <p>In addition to the per-pixel error function, a per-pixel <i>maximum error
113 estimator</i> is calculated, as follows:
114
115 <p><blockquote>
116 <pre>
117 <i>p_max(i, j, A, B, T) = Max( A(i, j), B(T_inverse(i, j)) )<sup>metric_exponent</sup></i>
118 </pre>
119 </blockquote>
120
121
122 <h3>Comprehensive Error Functions</h3>
123
124 There are two varieties of comprehensive error function used by ALE: an
125 <i>exhaustive</i> error function and, in versions 0.4.3 and later, a
126 <a href="mc/"><i>Monte Carlo</i></a> error function. Whereas the exhaustive function
127 evaluates the error for each pixel in the accumulated image, the <a href="mc/">Monte
128 Carlo</a> function evaluates only a subset of pixels. <!-- The latter may require
129 less time to compute, possibly at the expense of precision. -->
130 <p>If we consider <i>Sum[]</i> to provide the sum over whatever
131 subset of pixels we are sampling (including possibly the set of all pixels), then
132 the comprehensive error function, for accumulated image <i>A</i>, frame
133 <i>B</i>, and transformation <i>T</i>, is:
134
135 <p><blockquote>
136 <pre>
137 <i>E(A, B, T) = (Sum [ p(i, j, A, B, T) ] / Sum [ p_max(i, j, A, B, T) ])<sup>(1/metric_exponent)</sup></i>
138 </pre>
139 </blockquote>
140
141 <br><br>
142
143 <hr>
144 <i>Copyright 2002, 2003 <a href="mailto:[email protected]">David Hilvert</a></i>
145 <p>Verbatim copying and distribution of this entire article is permitted in any
146 medium, provided this notice is preserved.
147 </body>
148 </html>