| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>ALE User Manual: Control Points</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>Control Points [0.8.1 and later]</h1> |
| 50 | |
| 51 | <p>Control points are used for 2D and 3D alignment, and to constrain 3D scene |
| 52 | models. Control point data is loaded from a control point file. Scripts to |
| 53 | generate and manipulate control point files are included in the |
| 54 | <code>scripts</code> directory of the source distribution; the file |
| 55 | specification is outlined in the final section below. |
| 56 | |
| 57 | <h2>Loading a Control Point File</h2> |
| 58 | |
| 59 | The --cpf-load= option is used to load data from a control point file. |
| 60 | |
| 61 | <pre> |
| 62 | --cpf-load=<f> Load control point data from file <f> [0.8.1 and later] |
| 63 | </pre> |
| 64 | |
| 65 | <h2>Control Point File Format (version 0)</h2> |
| 66 | |
| 67 | The version 0 control point file format consists of a version command followed |
| 68 | by a sequence of control points, with one control point per line of the file. |
| 69 | |
| 70 | <pre> |
| 71 | V 0 |
| 72 | <i>Control Point 1</i> |
| 73 | <i>Control Point 2</i> |
| 74 | <i>Control Point 3</i> |
| 75 | . |
| 76 | . |
| 77 | . |
| 78 | </pre> |
| 79 | |
| 80 | <p>Control points can be one of three types:</p> |
| 81 | |
| 82 | <h3>Type A control points</h3> |
| 83 | |
| 84 | Type A control points specify a sequence of 2D points, one for each frame, |
| 85 | where each point is specified as a pair of floating point numbers. If there is |
| 86 | no data for a frame, then "nan" should be specified. E.g.: |
| 87 | |
| 88 | <pre> |
| 89 | A 20 30 nan nan 10 10 10 15 |
| 90 | A 23 22 25 25 nan nan nan nan |
| 91 | </pre> |
| 92 | |
| 93 | <h3>Type B control points</h3> |
| 94 | |
| 95 | Type B control points specify a 3D coordinate. E.g.: |
| 96 | |
| 97 | <pre> |
| 98 | B 10 30 -400 |
| 99 | B 10 15 -425 |
| 100 | </pre> |
| 101 | |
| 102 | <h3>Type C control points</h3> |
| 103 | |
| 104 | Type C control points specify both 2D and 3D data. There is a single 3D point |
| 105 | specified, as well as one 2D point for each frame. The 3D point appears at the |
| 106 | end of the line. E.g.: |
| 107 | |
| 108 | <pre> |
| 109 | C 20 30 nan nan 10 10 10 15 10 30 -400 |
| 110 | C 23 22 25 25 nan nan nan nan 10 15 -425 |
| 111 | </pre> |
| 112 | |
| 113 | |
| 114 | <br> |
| 115 | <hr> |
| 116 | <i>Copyright 2005 <a href="mailto:[email protected]">David Hilvert</a></i> |
| 117 | <p>Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. |
| 118 | |
| 119 | |
| 120 | </body> |
| 121 | </html> |