| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>ALE User Manual: Rendering</title> |
| 5 | <style type="text/css"> |
| 6 | TABLE.ba { max-width: 678; text-align: center; padding-bottom: 15; padding-top: 5} |
| 7 | TABLE.inline { padding-right: 300; clear: left} |
| 8 | TD.text_table {padding-left: 2; padding-right: 2; border-width: 1} |
| 9 | H2 {clear: left} |
| 10 | P {max-width: none; padding-right: 300; clear: left} |
| 11 | BLOCKQUOTE {padding-right: 400 } |
| 12 | LI {max-width: 640; clear: left} |
| 13 | P.footer {max-width: none; width: auto; padding-left: 0} |
| 14 | P.header {max-width: none; width: auto; padding-left: 0} |
| 15 | HR.main {max-width: 640; clear: left; padding-left: 0; margin-left: 0} |
| 16 | HR.footer {clear: both} |
| 17 | </style> |
| 18 | |
| 19 | </head> |
| 20 | <body> |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | <table align=right valign=top width=160> |
| 28 | <td valign=top height=600 width=160> |
| 29 | <a href="http://auricle.dyndns.org/ALE/"> |
| 30 | <big>ALE</big> |
| 31 | <br> |
| 32 | Image Processing Software |
| 33 | <br> |
| 34 | <br> |
| 35 | <small>Deblurring, Anti-aliasing, and Superresolution.</small></a> |
| 36 | <br><br> |
| 37 | <big> |
| 38 | Local Operation |
| 39 | </big> |
| 40 | <hr> |
| 41 | localhost<br> |
| 42 | 2684415918<br> |
| 43 | </table> |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | <p><b>[ <a href="../">Up</a> ]</b></p> |
| 49 | <h1>ALE Rendering</h1> |
| 50 | |
| 51 | <p>Rendering determines how an output image is constructed from a series of |
| 52 | aligned input frames, and occurs in two stages: incremental rendering and |
| 53 | Irani-Peleg rendering. Additional rendering options include exposure |
| 54 | registration, certainty-weighted rendering, spatial extension, range extension, |
| 55 | scaling, and bayer pattern specification. Experimental options for video |
| 56 | stream processing are also available. |
| 57 | |
| 58 | <h2>Incremental Rendering</h2> |
| 59 | |
| 60 | <p>The incremental renderer uses configurable <a href="chains/">rendering |
| 61 | chains</a> to determine the output image. It can increase resolution and |
| 62 | reduce aliasing, but it cannot reduce blur. |
| 63 | |
| 64 | <h2>Irani-Peleg Rendering</h2> |
| 65 | |
| 66 | <p>The Irani-Peleg renderer uses configurable <a href="psf/">point-spread |
| 67 | functions</a> to model blur, which is then reduced by an iterative |
| 68 | backprojection technique. (For iteration defaults, see the <a |
| 69 | href="../defaults/"> default settings</a> page.) In versions 0.8.1 and |
| 70 | later, using the median correction value can be specified. By default, |
| 71 | the mean correction value is used. |
| 72 | |
| 73 | <pre> |
| 74 | --ips <i> Run <i> iterations. |
| 75 | --ip-mean Use the mean correction [default] [0.8.1 and later] |
| 76 | --ip-median Use the median correction [0.8.1 and later] |
| 77 | </pre> |
| 78 | |
| 79 | <h2>Exposure Registration</h2> |
| 80 | |
| 81 | <p>By default, ALE adjusts an exposure model to minimize differences in tone |
| 82 | between frames. The option <code>--exp-noregister</code> indicates that |
| 83 | exposure should be assumed uniform across all frames. In this case, no |
| 84 | adjustment is performed. The option <code>--exp-meta-only</code> indicates |
| 85 | that only exposure information included in the image files should be used for |
| 86 | registration. Currently, <a href="EPPM/">EPPM</a> is the only type of exposure |
| 87 | metadata supported by this option.</p> |
| 88 | |
| 89 | <pre> |
| 90 | --exp-register Register exposure between frames. [default] |
| 91 | --exp-noregister Assume uniform exposure across all frames. |
| 92 | --exp-meta-only Use only image metadata for registering exposure. |
| 93 | </pre> |
| 94 | |
| 95 | <h2>Color Adjustment [0.8.1 and later]</h2> |
| 96 | |
| 97 | <p>To adjust the color of the output image (e.g., for white balance) in |
| 98 | versions 0.8.1 and later, the --exp-mult= option can be used.</p> |
| 99 | |
| 100 | <pre> |
| 101 | --exp-mult=c,r,b Adjust all channels by <c>, red by <r>, and blue by <b>. [0.8.1 and later] |
| 102 | </pre> |
| 103 | |
| 104 | <h2>Certainty-weighted Rendering</h2> |
| 105 | |
| 106 | <p>The exposure model in ALE includes an associated certainty function, which |
| 107 | quantifies the reliability of sensor measurements. By default, this function |
| 108 | is raised to the zeroth power, to obtain uniform certainty for all measurements. |
| 109 | To specify a different certainty exponent, the option <code>--cx</code> can be |
| 110 | used. This option is best used in combination with <code>--exp-extend</code> |
| 111 | (see below) and <code>--ips</code>. For defaults, see the <a href="../defaults/"> |
| 112 | default settings</a> page. |
| 113 | |
| 114 | <pre> |
| 115 | --cx <x> Render with certainty exponent <x> |
| 116 | --no-cx Render with uniform certainty. |
| 117 | </pre> |
| 118 | |
| 119 | <h2>Scale factor</h2> |
| 120 | |
| 121 | <p>Rendering with a larger scale factor results in image output of the specified |
| 122 | larger scale. Larger scales can improve alignment precision and output image |
| 123 | quality, but can also increase alignment and rendering times. |
| 124 | |
| 125 | <pre> |
| 126 | --scale=x Scale images by the factor x, where x > 0. (1 is default) |
| 127 | </pre> |
| 128 | |
| 129 | <h2>Image extents</h2> |
| 130 | |
| 131 | <p>The --extend option records pixel data that falls outside of the region of the |
| 132 | first frame in the sequence. This can be useful for providing additional |
| 133 | alignment constraints or creating panoramic image mosaics. (For mosaics, see |
| 134 | also the description of the --follow option in the <a |
| 135 | href="../alignment">alignment</a> section.) |
| 136 | |
| 137 | <pre> |
| 138 | --extend Increase image extents to accommodate all pixel data. |
| 139 | --no-extend Don't increase extents; crop to original frame. [default] |
| 140 | </pre> |
| 141 | |
| 142 | <h2>Exposure extents</h2> |
| 143 | |
| 144 | <p>By default, ALE restricts the output range to that of the original frame. |
| 145 | To adjust the output range to accommodate the ranges of all input frames, |
| 146 | specify <code>--exp-extend</code>. For defaults, see the <a href="../defaults/"> |
| 147 | default settings</a> page. |
| 148 | |
| 149 | <pre> |
| 150 | --exp-extend Extend range to include all calculated values. |
| 151 | --exp-noextend Restrict to the original frame's range. |
| 152 | </pre> |
| 153 | |
| 154 | <h2>Bayer pattern specification</h2> |
| 155 | |
| 156 | <p>Many cameras sample only one color channel per output pixel. To ignore the |
| 157 | other channels, a bayer pattern can be specified. |
| 158 | |
| 159 | <pre> |
| 160 | --bayer <b> Set the bayer pattern to <b>, one of: |
| 161 | (clockwise from top left pixel) |
| 162 | rgbg Red-green-blue-green |
| 163 | gbgr Green-blue-green-red |
| 164 | grgb Green-red-green-blue |
| 165 | bgrg Blue-green-red-green |
| 166 | none RGB-RGB-RGB-RGB |
| 167 | Default is none or device-specific. |
| 168 | </pre> |
| 169 | |
| 170 | <h2>Video stream processing (Experimental)</h2> |
| 171 | |
| 172 | <p>If a sequence of frames represents a video stream, then, in addition to |
| 173 | producing a single output image, ALE can also produce one or more sequences of |
| 174 | processed frames, corresponding to one or more occurrences of the |
| 175 | <code>--visp</code> option. This option has its own associated scaling option, |
| 176 | as well as an option to show excluded regions as dimmed wherever possible.</p> |
| 177 | |
| 178 | <pre> |
| 179 | --visp <args> Process a video sequence. |
| 180 | <args> are: |
| 181 | <chain> <stabilization-type> <prefix> <suffix> |
| 182 | <chain> is an incremental rendering chain. |
| 183 | <stabilization-type> is one of: |
| 184 | ma:<x> Moving average over 2*<x> + 1 frames |
| 185 | sf:<x> Stabilize to single frame number <x> |
| 186 | identity Same as ma:0 |
| 187 | <prefix> is an output file prefix |
| 188 | <suffix> is an output file suffix |
| 189 | --visp-scale=<x> Use scale <x> for VISP output. (default is 1.0) |
| 190 | --exshow For single-invariant chains, show --ex regions dimmed. |
| 191 | </pre> |
| 192 | |
| 193 | <h3>Video stream processing example</h3> |
| 194 | |
| 195 | <p>To mimic the behavior of repeated applications of the 0.6.0 |
| 196 | <code>--replace</code> option over a sequence of frames, the following |
| 197 | <code>--visp</code> option could be used. |
| 198 | |
| 199 | <pre> |
| 200 | --visp last:nex:triangle:2 sf:0 frame .jpg |
| 201 | </pre> |
| 202 | |
| 203 | <p>For better filtering, the following option could be used instead: |
| 204 | |
| 205 | <pre> |
| 206 | --visp last:nex:sinc*lanc:6 sf:0 frame .jpg |
| 207 | </pre> |
| 208 | |
| 209 | <br> |
| 210 | <hr> |
| 211 | <i>Copyright 2003, 2004 <a href="mailto:[email protected]">David Hilvert</a></i> |
| 212 | <p>Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. |
| 213 | |
| 214 | |
| 215 | </body> |
| 216 | </html> |