Debian Codegraph @

doc/html-original/ALE/download/ale-0.6.0-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>Pre-Alignment Exposure Registration</h3>
77
78 <p>When exposure registration is enabled, ALE performs an exposure registration
79 step prior to alignment. The resulting values are dependent on the initial
80 alignment (this can be either the default initial alignment or an alignment
81 loaded from a transformation data file). See the source code for details.
82
83 <h3>Per-Pixel Error Functions</h3>
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,
108 j))</i> is determined by bilinear interpolation. If not specified by the
109 --metric option, <i>metric_exponent</i> defaults to 2.0 for ALE versions 0.1.0
110 and later, or 1.0 for version 0.0.0.
111
112 <p>For coordinates where B(T_inverse(i, j)) is not defined, the error is zero.
113 (Feedback from Angelo Pesce led to clarification of this point.)
114
115 <p>In addition to the per-pixel error function, a per-pixel <i>maximum error
116 estimator</i> is calculated, as follows:
117
118 <p><blockquote>
119 <pre>
120 <i>p_max(i, j, A, B, T) = Max( A(i, j), B(T_inverse(i, j)) )<sup>metric_exponent</sup></i>
121 </pre>
122 </blockquote>
123
124 <p>For coordinates where B(T_inverse(i, j)) is not defined, the maximum error
125 estimator is zero. (Feedback from Angelo Pesce led to clarification of this
126 point.)
127
128
129 <h3>Comprehensive Error Functions</h3>
130
131 There are two varieties of comprehensive error function used by ALE: an
132 <i>exhaustive</i> error function and, in versions 0.4.3 and later, a
133 <a href="mc/"><i>Monte Carlo</i></a> error function. Whereas the exhaustive function
134 evaluates the error for each pixel in the accumulated image, the <a href="mc/">Monte
135 Carlo</a> function evaluates only a subset of pixels. <!-- The latter may require
136 less time to compute, possibly at the expense of precision. -->
137 <p>If we consider <i>Sum[]</i> to provide the sum over whatever
138 subset of pixels we are sampling (including possibly the set of all pixels), then
139 the comprehensive error function, for accumulated image <i>A</i>, frame
140 <i>B</i>, and transformation <i>T</i>, is:
141
142 <p><blockquote>
143 <pre>
144 <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>
145 </pre>
146 </blockquote>
147
148 <br><br>
149
150 <hr>
151 <i>Copyright 2002, 2003, 2004 <a href="mailto:[email protected]">David Hilvert</a></i>
152 <p>Verbatim copying and distribution of this entire article is permitted in any
153 medium, provided this notice is preserved.
154 </body>
155 </html>