| 1 |
<html> |
| 2 |
<title>Error</title> |
| 3 |
|
| 4 |
<style type="text/css"> |
| 5 |
TABLE.ba { max-width: 678; text-align: center; padding-bottom: 15; padding-top: 5} |
| 6 |
TABLE.inline { padding-right: 300; clear: left} |
| 7 |
TD.text_table {padding-left: 2; padding-right: 2; border-width: 1} |
| 8 |
H2 {clear: left} |
| 9 |
P {max-width: none; padding-right: 300; clear: left} |
| 10 |
BLOCKQUOTE {padding-right: 400 } |
| 11 |
LI {max-width: 640; clear: left} |
| 12 |
P.footer {max-width: none; width: auto; padding-left: 0} |
| 13 |
P.header {max-width: none; width: auto; padding-left: 0} |
| 14 |
HR.main {max-width: 640; clear: left; padding-left: 0; margin-left: 0} |
| 15 |
HR.footer {clear: both} |
| 16 |
</style> |
| 17 |
|
| 18 |
</head> |
| 19 |
<body> |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
<table align=right valign=top width=160> |
| 27 |
<td valign=top height=600 width=160> |
| 28 |
<a href="http://auricle.dyndns.org/ALE/"> |
| 29 |
<big>ALE</big> |
| 30 |
<br> |
| 31 |
Image Processing Software |
| 32 |
<br> |
| 33 |
<br> |
| 34 |
<small>Deblurring, Anti-aliasing, and Superresolution.</small></a> |
| 35 |
<br><br> |
| 36 |
<big> |
| 37 |
Local Operation |
| 38 |
</big> |
| 39 |
<hr> |
| 40 |
localhost<br> |
| 41 |
5393119533<br> |
| 42 |
</table> |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
<p><b>[ <a href="../">Up</a> | <a href="mc/">Monte Carlo</a> ]</b></p> |
| 48 |
<h1>Error</h1> |
| 49 |
|
| 50 |
<p>Error calculations are used to determine whether a transformation is "good" |
| 51 |
or not, and in particular, whether one transformation is better or worse than |
| 52 |
another. A smaller error indicates a better transformation, from the perspective |
| 53 |
of the alignment algorithm. |
| 54 |
|
| 55 |
<p>ALE defines an error value for each pixel of the alignment reference image, and also |
| 56 |
comprehensive error, which summarizes the error over all pixels. |
| 57 |
|
| 58 |
<h3>Pre-Alignment Exposure Registration</h3> |
| 59 |
|
| 60 |
<p>When exposure registration is enabled, ALE performs an exposure registration |
| 61 |
step prior to alignment. The result of this step is dependent on the initial |
| 62 |
alignment (this can be either the default initial alignment or an alignment |
| 63 |
loaded from a transformation data file). See the source for more details. |
| 64 |
|
| 65 |
<h3>Per-Pixel Error</h3> |
| 66 |
|
| 67 |
<!-- <p>(Alternatives to normalization exist, including the use of inner products; see |
| 68 |
Steve Mann's paper, available on the website linked in footnote 1, for a |
| 69 |
discussion of alignment approaches.) --> |
| 70 |
|
| 71 |
<!-- |
| 72 |
<p>Based on principle 2, ALE calculates the difference between each alignment reference |
| 73 |
image pixel and the value with which it would be merged given a candidate |
| 74 |
transformation. This latter value is the <i>overlapping value</i>, as |
| 75 |
described in the section on <a href="../../merging/">merging</a>. This difference |
| 76 |
is then raised by the error metric exponent, as specified by the --metric |
| 77 |
option. The exponent defaults to 2.0 for ALE versions 0.1.0 and later, or 1.0 |
| 78 |
for version 0.0.0. Hence, |
| 79 |
--> |
| 80 |
<p>The per-pixel error for pixel <i>(i, j)</i> in the alignment reference |
| 81 |
image <i>A</i>, frame <i>B</i>, and transformation <i>T</i>, is: |
| 82 |
|
| 83 |
<p><blockquote> |
| 84 |
<pre> |
| 85 |
<i>p(i, j, A, B, T) = Abs( A(i, j) - B(T_inverse(i, j)) )<sup>metric_exponent</sup></i> |
| 86 |
</pre> |
| 87 |
</blockquote> |
| 88 |
|
| 89 |
<p>where <i>Abs()</i> is the absolute value function and <i>B(T_inverse(i, |
| 90 |
j))</i> is determined by bilinear interpolation (unless a different interpolant |
| 91 |
is specified using <code>--afilter</code>). If not specified by the --metric |
| 92 |
option, <i>metric_exponent</i> defaults to 2. |
| 93 |
|
| 94 |
<p>For coordinates where B(T_inverse(i, j)) is not defined, the error is zero. |
| 95 |
(Feedback from Angelo Pesce led to clarification of this point.) |
| 96 |
|
| 97 |
<p>In addition to per-pixel error, a per-pixel <i>maximum error |
| 98 |
estimator</i> is calculated, as follows: |
| 99 |
|
| 100 |
<p><blockquote> |
| 101 |
<pre> |
| 102 |
<i>p_max(i, j, A, B, T) = Max( A(i, j), B(T_inverse(i, j)) )<sup>metric_exponent</sup></i> |
| 103 |
</pre> |
| 104 |
</blockquote> |
| 105 |
|
| 106 |
<p>For coordinates where B(T_inverse(i, j)) is not defined, the maximum error |
| 107 |
estimator is zero. (Feedback from Angelo Pesce led to clarification of this |
| 108 |
point.) |
| 109 |
|
| 110 |
|
| 111 |
<h3>Comprehensive Error</h3> |
| 112 |
|
| 113 |
<p>There are two varieties of comprehensive error used by ALE: <i>exhaustive</i> |
| 114 |
error (enabled by <code>--no-mc</code>) and <a |
| 115 |
href="mc/"><i>Monte Carlo</i></a> error (enabled by <code>--mc</code>). |
| 116 |
Whereas the exhaustive approach evaluates the error for each pixel in the |
| 117 |
alignment reference image, the <a href="mc/">Monte Carlo</a> approach evaluates |
| 118 |
only a subset of pixels. |
| 119 |
|
| 120 |
<p>If we consider <i>Sum[]</i> to provide the sum over whatever subset of |
| 121 |
pixels we are sampling (including possibly the set of all pixels), then the |
| 122 |
comprehensive error function, for alignment reference image <i>A</i>, frame |
| 123 |
<i>B</i>, and transformation <i>T</i>, is: |
| 124 |
|
| 125 |
<p><blockquote> |
| 126 |
<pre> |
| 127 |
<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> |
| 128 |
</pre> |
| 129 |
</blockquote> |
| 130 |
|
| 131 |
<br><br> |
| 132 |
|
| 133 |
<hr> |
| 134 |
<i>Copyright 2002, 2003, 2004 <a href="mailto:[email protected]">David Hilvert</a></i> |
| 135 |
<p>Verbatim copying and distribution of this entire article is permitted in any |
| 136 |
medium, provided this notice is preserved. |
| 137 |
</body> |
| 138 |
</html> |