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 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 table.table, table.table td, table.table th 48 { 49 border-collapse: collapse; 50 background-color: white; 51 } 52 table.table 53 { 54 width: auto; 55 margin: 1em; 56 position : static; 57 font-family : Arial; 58 } 59 table.table td, table.table th 60 { 61 padding: 0.2em; 62 } 63 table.table td.number, table.table th.number 64 { 65 text-align: right; 66 } 67 table.table tbody tr th 68 { 69 text-align: left; 70 font-weight: normal; 71 width: auto; 72 } 73 table.table thead tr th, 74 table.table tbody tr th.category 75 { 76 padding: 0 0.2em; 77 } 78 table.table caption 79 { 80 font-weight: bold; 81 padding: 0.4em; 82 } 83 table.table th 84 { 85 font-weight : bold; 86 background : #acf; 87 } 88 --></style> 89<title>StereoCameraCalibrator</title> 90 </head> 91 <body> 92<h1><CODE>StereoCameraCalibrator</CODE></h1> 93<h2>Description</h2> 94 <div class="section"> 95 <p> 96<CODE>StereoCameraCalibrator</CODE> is a tool for manually setting the calibration data for the stereo cameras. This tool can set the following values. 97 <table class="table"><tbody> 98<caption>Position offsets</caption> 99<tr><th><B>Parameter Name</B></th><th><B>Setting Name in the Tool</B></th><th><B>Member in <CODE>StereoCameraCalibrationData</CODE> Structure</B></th></tr> 100<tr><td>Scaling factor</td><td><B>scale</B></td><td><CODE>scale</CODE></td></tr> 101<tr><td>Angle of rotation around the light axis</td><td><B>rotZ</B></td><td><CODE>rotationZ</CODE></td></tr> 102<tr><td>Amount of horizontal translation</td><td><B>transX</B></td><td><CODE>translationX</CODE></td></tr> 103<tr><td>Amount of vertical translation</td><td><B>transY</B></td><td><CODE>translationY</CODE></td></tr> 104 </tbody></table> 105 <table class="table"><tbody> 106<caption>Angles of view</caption> 107<tr><th><B>Parameter name</B></th><th><B>Item name in the tool</B></th><th><B>Member in the <CODE>StereoCameraCalibrationData</CODE> Structure</B></th></tr> 108<tr><td>Angle of view of the left camera</td><td><B>angleL</B></td><td><CODE>angleOfViewLeft</CODE></td></tr> 109<tr><td>Angle of view of the right camera</td><td><B>angleR</B></td><td><CODE>angleOfViewRight</CODE></td></tr> 110 </tbody></table> 111<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. 112 </p> 113 </div> 114<h2>How to Calibrate Position Offsets</h2> 115 <div class="section"> 116 <p> 117<h4>Preparing the Chart</h4> 118 <p> 119Print 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. 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 will make correct calibration impossible. 120 </p> 121<h4>Calibrating the Values</h4> 122 <p> 123Use Left/Right on the +Control Pad to select the setting to calibrate, 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>. 124 </p> 125<h4>Setting the Parameters</h4> 126 <p> 127Press the A Button to save all the calibrated values to the system as calibration data. Note that all the calibration values are saved at once, not just the setting you have currently selected.<br /><br />Press the B Button to cancel any adjustments you have made to the selected setting and reset it to its original value (the value saved in the system). 128 </p> 129 </p> 130 </div> 131<h2>How to Set the Angles of View</h2> 132 <div class="section"> 133 <p> 134<h4>Preparing the Chart</h4> 135 <p> 136Just 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. 137 </p> 138<h4>Calibrating the Values</h4> 139 <p> 140To calibrate the left camera's angle of view, select <CODE>angleL</CODE> and press the B Button. To do the same for the right camera, select <CODE>angleR</CODE> 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>. 141 </p> 142 <p> 143If 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 figure below.) 144 <pre> 145 Adjust the value so that the icons lie exactly on the two end squares. 146 <img src="StereoCameraCalibrator.gif" width="360" height="120" align="center" /></pre> 147If 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 Slide 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. 148 </p> 149<h4>Setting the Parameters</h4> 150 <p> 151Press 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. 152 </p> 153 </p> 154 </div> 155<h2>Revision History</h2> 156 <div class="section"> 157 <dl class="history"> 158 <dt>2010/06/08</dt> 159<dd>Initial version.<br /> 160 </dd> 161 </dl> 162 </div> 163 <hr><p>CONFIDENTIAL</p></body> 164</html> 165