| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>ALE User Manual: Alignment</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 | 2684415918<br> |
| 39 | </table> |
| 40 | |
| 41 | |
| 42 | |
| 43 | <p><b>[ <a href="../">Up</a> ]</b></p> |
| 44 | <h1>Alignment</h1> |
| 45 | |
| 46 | Alignment compares each supplemental frame in the sequence with an intermediate |
| 47 | rendering known as the accumulated image. Based on this comparison, a |
| 48 | transformation is assigned to the supplemental frame. Many different |
| 49 | transformations can be assigned before alignment of the frame is complete. |
| 50 | |
| 51 | <h2>Match statistics</h2> |
| 52 | |
| 53 | The match statistic is a single number indicating how well two frames are |
| 54 | aligned. After alignment is complete, ALE displays the final match statistic. |
| 55 | If the value is close to 100%, then the frames are well aligned. Very low |
| 56 | values can indicate misalignment. However, even frames that are very well |
| 57 | aligned do not usually achieve 100% alignment, and for improving image quality, |
| 58 | ALE works most effectively when match values are less than 100%. |
| 59 | |
| 60 | <h3>Match threshold</h3> |
| 61 | |
| 62 | A match threshold can be specified; no images with final match statistics |
| 63 | falling below this threshold will contribute to the final output. |
| 64 | |
| 65 | <pre> |
| 66 | --threshold=x Min. match threshold; a perfect match is 100. (0 is default) |
| 67 | </pre> |
| 68 | |
| 69 | <h3>Error metric exponent</h3> |
| 70 | |
| 71 | The function calculated at each pixel to determine the match statistic is known |
| 72 | as the error metric, and is of the form <i>(a-b)<sup>x</sup></i>. The value <i>x</i> is |
| 73 | known as the error metric exponent, and is 2 by default. Larger numbers |
| 74 | usually mean that alignment will be more influenced by smaller image features. |
| 75 | |
| 76 | <pre> |
| 77 | --metric=x Set the error metric exponent. (2 is default) |
| 78 | </pre> |
| 79 | |
| 80 | <h3>Alignment Channel Options</h3> |
| 81 | |
| 82 | In calculating the per-pixel error metric, there are three ways in which ALE |
| 83 | can handle color channels. By default, ALE adds the channels before |
| 84 | calculating the match. However, ALE can also rely solely on the green color |
| 85 | channel or use all three channels separately. |
| 86 | |
| 87 | <pre> |
| 88 | --align-all Align images using all color channels |
| 89 | --align-green Align images using the green channel |
| 90 | --align-sum Align images using a sum of channels [default] |
| 91 | </pre> |
| 92 | |
| 93 | <h3>Monte Carlo Alignment</h3> |
| 94 | |
| 95 | Aligning large images can take a very long time if all pixels are examined in |
| 96 | determining the match statistic, so it is often desirable to examine a smaller |
| 97 | number of pixels. The Monte Carlo alignment option allows this. The number of |
| 98 | pixels used is specified as a percentage, and smaller numbers usually mean |
| 99 | faster, but less precise, alignment. |
| 100 | |
| 101 | <pre> |
| 102 | --mc <x> Align using, on average, x% of available pixels (0 < x < 100) |
| 103 | --no-mc Align using all pixels. [default] |
| 104 | </pre> |
| 105 | |
| 106 | <h2>Perturbation</h2> |
| 107 | |
| 108 | Every dot displayed after an input filename indicates a change in perturbation |
| 109 | size. The size is initially set to be high, allowing large changes in |
| 110 | alignment to be evaluated, and is reduced as the locally optimal alignment is |
| 111 | found for each size. When this size drops below a specified lower bound, the |
| 112 | frame is considered to be aligned. |
| 113 | |
| 114 | <h3>Perturbation bounds</h3> |
| 115 | |
| 116 | These options determine the upper and lower bounds for perturbation size. The |
| 117 | perturb-upper and perturb-lower bounds apply to rotation (in degrees), |
| 118 | translation (in pixels), and the movement of the boundaries of a projected |
| 119 | frame (in pixels). The rot-upper bound disables rotational perturbation above |
| 120 | a certain perturbation size (in degrees). To disable alignment, set |
| 121 | perturb-upper to zero. |
| 122 | |
| 123 | <pre> |
| 124 | --perturb-upper=x Perturbation upper bound in pixels/degrees (32.0 is default) |
| 125 | --perturb-lower=x Perturbation lower bound in pixels/degrees (.125 is default) |
| 126 | --rot-upper=x Rotation-specific perturbation upper bound (32.0 is default) |
| 127 | </pre> |
| 128 | |
| 129 | <h3>Level of detail</h3> |
| 130 | |
| 131 | <p>Alignment at large perturbation sizes is usually carried out on |
| 132 | reduced-detail images. To disable this, set lod-max to |
| 133 | log<sub>2</sub>(perturb-upper). |
| 134 | |
| 135 | <pre> |
| 136 | --lod-max=x LOD scale factor is max(1, (2^floor(x))/perturb) (1 is def.) |
| 137 | </pre> |
| 138 | |
| 139 | <h2>Transformations</h2> |
| 140 | |
| 141 | The variables used to adjust alignment are called transformations, and map |
| 142 | points from a source image to a target image. |
| 143 | |
| 144 | <p>There are three transformation classes that can be used by ALE. The |
| 145 | translational class applies only translations to the inputs, changing only the |
| 146 | position of images; the Euclidean class applies translations and rotations; and |
| 147 | the projective class applies general projective transformations, which are the |
| 148 | most general type of transformation supported by ALE. |
| 149 | |
| 150 | <p>The Euclidean class is most appropriate for use with scanners and as a first |
| 151 | pass for projective transformations. The projective class is most appropriate |
| 152 | for use with cameras. |
| 153 | |
| 154 | <p>Except when capturing flat scenes, ALE does not correct for perspective |
| 155 | changes, so movement of cameras should ideally be constrained so that no large |
| 156 | translations occur. |
| 157 | |
| 158 | <h3>Transformation Class Options</h3> |
| 159 | |
| 160 | <pre> |
| 161 | --translation Only adjust the position of images |
| 162 | --euclidean Adjust the position and orientation of images [default] |
| 163 | --projective Use projective transformations. Best quality, but slow. |
| 164 | </pre> |
| 165 | |
| 166 | <h3>Transformation data file options</h3> |
| 167 | |
| 168 | Transformations used in alignment can be loaded from a file or saved to a file. |
| 169 | This can be useful when performing alignment in several passes, or when |
| 170 | refining rendering options. |
| 171 | |
| 172 | <p>Note that projective transformation data saved to a file cannot be used to |
| 173 | initialize other transformation types. |
| 174 | |
| 175 | <pre> |
| 176 | --trans-load=x Load initial transformation settings from file x |
| 177 | --trans-save=x Save final transformation data in file x |
| 178 | </pre> |
| 179 | |
| 180 | <h3>Alignment following</h3> |
| 181 | |
| 182 | When frames are more closely aligned with adjacent frames in the sequence than |
| 183 | they are with the first frame in the sequence, alignment success can be |
| 184 | improved by specifying the --follow option. This option can be effective even |
| 185 | when initial alignment information is loaded from a file. |
| 186 | |
| 187 | <pre> |
| 188 | --identity Frames align closely with the original frame. [default] |
| 189 | --follow Frames align closely with their immediate predecessor. |
| 190 | </pre> |
| 191 | |
| 192 | <br> |
| 193 | <hr> |
| 194 | <i>Copyright 2003 <a href="mailto:[email protected]">David Hilvert</a></i> |
| 195 | <p>Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. |
| 196 | |
| 197 | |
| 198 | </body> |
| 199 | </html> |