1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 22 span.virtual_style 23 { 24 font-size : 8pt; 25 color : white; 26 font-weight : bold; 27 background : #0a0; 28 border-left : solid 1px #0f0; 29 border-top : solid 1px #0f0; 30 border-right : solid 1px #060; 31 border-bottom : solid 1px #060; 32 padding-left : 2px; 33 padding-right : 2px; 34 } 35 36 span.protected_style 37 { 38 font-size : 8pt; 39 color : white; 40 font-weight : bold; 41 background : #444; 42 border-left : solid 1px #ccc; 43 border-top : solid 1px #ccc; 44 border-right : solid 1px #222; 45 border-bottom : solid 1px #222; 46 padding-left : 2px; 47 padding-right : 2px; 48 } 49 table.table, table.table td, table.table th 50 { 51 border-collapse: collapse; 52 background-color: white; 53 } 54 55 table.table 56 { 57 width: auto; 58 margin: 1em; 59 position : static; 60 font-family : Arial; 61 } 62 63 table.table td, table.table th 64 { 65 padding: 0.2em; 66 } 67 68 table.table td.number, table.table th.number 69 { 70 text-align: right; 71 } 72 73 table.table tbody tr th 74 { 75 text-align: left; 76 font-weight: normal; 77 width: auto; 78 } 79 80 table.table thead tr th, 81 table.table tbody tr th.category 82 { 83 padding: 0 0.2em; 84 } 85 86 table.table caption 87 { 88 font-weight: bold; 89 padding: 0.4em; 90 } 91 table.table th 92 { 93 font-weight : bold; 94 background : #acf; 95 } 96 --></style> 97 <title>StereoCameraCalibrator</title> 98 </head> 99 <body> 100 <h1><CODE>StereoCameraCalibrator</CODE></h1> 101 <h2>Overview</h2> 102 <div class="section"> 103 <p> 104 <CODE>StereoCameraCalibrator</CODE> is a tool for manually setting the calibration data for the stereo cameras. This tool can set the following values. 105 106 <table class="table"><tbody> 107 <caption>Position Offsets</caption> 108 <tr><th>Parameter Name</th><th>Setting Name in the Tool</th><th>Member in the <CODE>StereoCameraCalibrationData</CODE> Structure</th></tr> 109 <tr><td>Scaling factor</td><td>scale</td><td>Scale</td></tr> 110 <tr><td>Angle of rotation around the light axis</td><td>rotZ</td><td>RotationZ</td></tr> 111 <tr><td>Amount of horizontal translation</td><td>transX</td><td>TranslationX</td></tr> 112 <tr><td>Amount of vertical translation</td><td>transY</td><td>TranslationY</td></tr> 113 </tbody></table> 114 115 <table class="table"><tbody> 116 <caption>Angles of View</caption> 117 <tr><th>Parameter Name</th><th>Setting Name in the Tool</th><th>Member in the <CODE>StereoCameraCalibrationData</CODE> Structure</th></tr> 118 <tr><td>Angle of view of the left camera</td><td>angleL</td><td>AngleOfViewLeft</td></tr> 119 <tr><td>Angle of view of the right camera</td><td>angleR</td><td>AngleOfViewRight</td></tr> 120 </tbody></table> 121 122 <B>Note:</B> Any values configured with this tool will be reset to their factory defaults if you run the <CODE>Config</CODE> tool and reset settings. 123 </p> 124 </div> 125 126 <h2>How to Calibrate Position Offsets</h2> 127 <div class="section"> 128 <p> 129 <h4>Preparing the Chart</h4> 130 <p> 131 Print the chess chart (<CODE><a href="./chesschart-14mm-16x10.pdf" target="_blank">chesschart-14mm-16x10.pdf</a></CODE>) stored in the <CODE>documents/api/tools</CODE> folder. Place this chart 250 mm away from the CTR camera module. Both the camera and the chart must be horizontal.<br /> Note that the calibrated values will be erroneous if the distance between the camera module and the chart is not 250 mm, or if the camera module and chart are not both horizontal.<br /> <font color="red"><B>Note:</B> </font><br />Be sure to print the chart at actual size, because any scaling makes correct calibration impossible. 132 </p> 133 <h4>Calibrating the Values</h4> 134 <p> 135 Use Left/Right on the +Control Pad to select the setting to calibrate, and then use Up/Down to change its value. (For example, if you press Right on the +Control Pad while <CODE>rotZ</CODE> is selected, the cursor moves to <CODE>transX</CODE> on the next line.))<br /><br /> Adjust the values of <CODE>scale</CODE>, <CODE>rotZ</CODE>, <CODE>transX</CODE>, and <CODE>transY</CODE> so that the chess chart in the left image exactly overlaps the chess chart in the right image. For how to set <CODE>angleL</CODE> and <CODE>angleR</CODE>, see <B>How to Set the Angles of View</B>. 136 </p> 137 <h4>Setting the Parameters</h4> 138 <p> 139 Press the A Button to save all the calibrated values to the system as calibration data. Note that all calibration values are saved, not just the setting you have currently selected.<br /><br /> Press the B Button to cancel any adjustments you have made to the selected settings and reset them to the original values. 140 </p> 141 </p> 142 </div> 143 144 <h2>How to Set the Angles of View</h2> 145 <div class="section"> 146 <p> 147 <h4>Preparing the Chart</h4> 148 <p> 149 Just as when calibrating the position offsets, print the chess chart (<CODE>chesschart-14mm-16x10.pdf</CODE>) stored in the <CODE>documents/api/tools</CODE> folder. Place this chart 250mm away from the CTR camera module. 150 </p> 151 <h4>Calibrating the Values</h4> 152 <p> 153To calibrate the left camera's angle of view, select <B>angleL</B> and press the B Button. To do the same for the right camera, select <B>angleR</B> and press the B Button.<br /><br />The upper screen displays only the image for the selected side, overlaid with two square icons. The calibration value is the default value: <CODE>66.0</CODE>. 154 </p> 155 <p> 156 If you adjust the value with Up/Down on the +Control Pad, the two icons overlaid on the image move closer or farther apart. Adjust the distance between these two icons so that they lie exactly on two squares of the chess chart whose centers are 84mm apart. Each square is 14 mm wide, so the squares you want the icons to lie on have 5 full squares between them.<br /> (See the following figure.) 157 <pre> 158 Adjust the value so that the icons lie exactly on the two end squares. 159 <img src="StereoCameraCalibrator.gif" alt="" height="120" width="360" align="center"></pre> 160 If the size of the chess square does not perfectly match the size of the icon, align the center of the icon with the center of the square.<br /> You can also use the Circle Pad to change the position of the icons. When you are making very fine adjustments, we recommend moving the icons rather than moving the camera module or the chart. 161 </p> 162 <h4>Setting the Parameters</h4> 163 <p> 164 Press the A Button to save all the calibrated values to the system as calibration data. Note that all calibration values are saved, not just the setting you have currently selected.<br /><br /> Press the B Button to cancel any adjustments you have made to the selected settings and reset them to the original values. 165 </p> 166 </p> 167 </div> 168 169 <h2>Revision History</h2> 170 <div class="section"> 171 <dl class="history"> 172 <dt>2010/06/08</dt> 173 <dd>Initial version.<br /> 174 </dd> 175 </dl> 176 </div> 177 <hr><p>CONFIDENTIAL</p></body> 178</html> 179