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 --></style> 50<title>nn::camera::CTR::StereoCameraCalibrationData</title> 51 </head> 52 <body> 53<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/camera/Overview.html">camera</a>::<a href="../../../../nn/camera/CTR/Overview.html">CTR</a>::StereoCameraCalibrationData</CODE> Structure</h1> 54<h2>Syntax</h2> 55 <div class="section"> 56<pre class="definition">struct StereoCameraCalibrationData 57{ 58 struct <a href="../../../../nn/camera/CTR/StereoCameraCalibrationData/Flags/Overview.html">nn::camera::CTR::StereoCameraCalibrationData::Flags</a> flags; 59 <a href="../../../../nn_types/f32.html">f32</a> scale; 60 <a href="../../../../nn_types/f32.html">f32</a> rotationZ; 61 <a href="../../../../nn_types/f32.html">f32</a> translationX; 62 <a href="../../../../nn_types/f32.html">f32</a> translationY; 63 <a href="../../../../nn_types/f32.html">f32</a> rotationX; 64 <a href="../../../../nn_types/f32.html">f32</a> rotationY; 65 <a href="../../../../nn_types/f32.html">f32</a> angleOfViewRight; 66 <a href="../../../../nn_types/f32.html">f32</a> angleOfViewLeft; 67 <a href="../../../../nn_types/f32.html">f32</a> distanceToChart; 68 <a href="../../../../nn_types/f32.html">f32</a> distanceCameras; 69 <a href="../../../../nn_types/s16.html">s16</a> imageWidth; 70 <a href="../../../../nn_types/s16.html">s16</a> imageHeight; 71 <a href="../../../../nn_types/u8.html">u8</a> reserved[16]; 72}; 73</pre> 74 </div> 75<h2>Description</h2> 76 <div class="section"> 77<p>A structure that gives calibration information for the stereo cameras.</p><P> 78The left and right cameras are designed to be placed horizontally on the CTR system, 35 mm apart, but small errors in the precision of the camera placement occur during manufacturing. These placement errors cause the left and right camera images to be shifted relative to each other. This structure gives information used to correct discrepancies between the left and right images. 79 </P><P> 80The correction values <span class="argument">scale</span>, <span class="argument">rotationZ</span>, <span class="argument">translationX</span>, and <span class="argument">translationY</span> give the scale, optical axis rotation, and translation, respectively, to make the left camera image match the right camera image. You could also say that this is the amount by which the right image has been shifted from the left image. 81</P><P>Given that the cameras are only separated from the measurement chart by <span class="argument">distanceToChart</span> and the image size is <span class="argument">imageWidth</span> by <span class="argument">imageHeight</span>, the horizontal and vertical translations of the left and right images on the measurement chart are indicated by <span class="argument">translationX</span> and <span class="argument">translationY</span>, respectively. The values of <span class="argument">translationX</span> and <span class="argument">translationY</span> include shifts in the images caused when the optical axis is tilted horizontally and vertically. In addition to the horizontal image shift caused by errors in the left and right camera placement, <span class="argument">translationX</span> includes the parallax caused by the separation of the left and right cameras. 82</P><P>The <span class="argument">rotationX</span> and <span class="argument">rotationY</span> regions are reserved for storing the rotations about the horizontal and vertical axes necessary to make the left camera image match the right camera image. In the future, <span class="argument">flags</span>.<span class="argument">isValidRotationXY</span> will be <CODE>true</CODE> when the measured values are stored in <span class="argument">rotationX</span> and <span class="argument">rotationY</span>. When <span class="argument">flags</span>.<span class="argument">isValidRotationXY</span> is <CODE>false</CODE>, <span class="argument">rotationX</span> and <span class="argument">rotationY</span> are set to default data instead of the measured values. 83 </P></div> 84 <a name="struct" id="struct"> 85<h2>Structures</h2> 86 <div class="section"> 87 <table class="members"> 88 <tr> 89 <th> 90<a href="../../../../nn/camera/CTR/StereoCameraCalibrationData/Flags/Overview.html"><CODE>nn::camera::CTR::StereoCameraCalibrationData::Flags</CODE></a> 91 </th> 92<td>A flag used to distinguish between the current format and new formats when they are extended in the future.</td> 93 </tr> </table> 94 </div> 95 </a> <a name="variable" id="variable"> 96<h2>Member Variables</h2> 97 <div class="section"> 98 <table class="members"> 99 <tr> 100<th class="category" colspan="4">Extended information</th> 101 </tr> 102 <tr> 103 <td width="100"> </td> 104 <th> 105<span class="argument">flags</span> 106 </th> 107<td width="100">struct <a href="../../../../nn/camera/CTR/StereoCameraCalibrationData/Flags/Overview.html">nn::camera::CTR::StereoCameraCalibrationData::Flags</a></td> 108<td>A flag used to distinguish between the current format and new formats when they are extended in the future.</td> 109 </tr> 110 <tr> 111<th class="category" colspan="4">Corrected Value</th> 112 </tr> 113 <tr> 114 <td width="100"> </td> 115 <th> 116<span class="argument">scale</span> 117 </th> 118<td width="100"><a href="../../../../nn_types/f32.html">f32 </a></td> 119<td>The scale value required to make the left camera image match the right camera image. This is a value greater than 0.0 and less than or equal to 1.0.</td> 120 </tr> 121 <tr> 122 <td width="100"> </td> 123 <th> 124<span class="argument">rotationZ</span> 125 </th> 126<td width="100"><a href="../../../../nn_types/f32.html">f32</a></td> 127<td>The rotation about the optical axis required to make the left camera image match the right camera image. This is measured in degrees.</td> 128 </tr> 129 <tr> 130 <td width="100"> </td> 131 <th> 132<span class="argument">translationX</span> 133 </th> 134<td width="100"><a href="../../../../nn_types/f32.html">f32</a></td> 135<td>The horizontal translation required to make the left camera image line up with the right camera image on the measurement chart. This is measured in pixels.</td> 136 </tr> 137 <tr> 138 <td width="100"> </td> 139 <th> 140<span class="argument">translationY</span> 141 </th> 142<td width="100"><a href="../../../../nn_types/f32.html">f32</a></td> 143<td>The vertical translation required to make the left camera image line up with the right camera image on the measurement chart. This is measured in pixels.</td> 144 </tr> 145 <tr> 146 <td width="100"> </td> 147 <th> 148<span class="argument">rotationX</span> 149 </th> 150<td width="100"><a href="../../../../nn_types/f32.html">f32</a></td> 151<td>A reserved region for future extensions.</td> 152 </tr> 153 <tr> 154 <td width="100"> </td> 155 <th> 156<span class="argument">rotationY</span> 157 </th> 158<td width="100"><a href="../../../../nn_types/f32.html">f32</a></td> 159<td>A reserved region for future extensions.</td> 160 </tr> 161 <tr> 162 <td width="100"> </td> 163 <th> 164<span class="argument">angleOfViewRight</span> 165 </th> 166<td width="100"><a href="../../../../nn_types/f32.html">f32</a></td> 167<td>The diagonal angle of view for the right camera. This is measured in degrees.</td> 168 </tr> 169 <tr> 170 <td width="100"> </td> 171 <th> 172<span class="argument">angleOfViewLeft</span> 173 </th> 174<td width="100"><a href="../../../../nn_types/f32.html">f32</a></td> 175<td>The diagonal angle of view for the left camera. This is measured in degrees.</td> 176 </tr> 177 <tr> 178<th class="category" colspan="4">Measurement Conditions for Correction Values</th> 179 </tr> 180 <tr> 181 <td width="100"> </td> 182 <th> 183<span class="argument">distanceToChart</span> 184 </th> 185<td width="100"><a href="../../../../nn_types/f32.html">f32</a></td> 186<td>The distance between the cameras and the measurement chart. This is measured in millimeters. It has a fixed value of <CODE>250.0f</CODE>.</td> 187 </tr> 188 <tr> 189 <td width="100"> </td> 190 <th> 191<span class="argument">distanceCameras</span> 192 </th> 193<td width="100"><a href="../../../../nn_types/f32.html">f32</a></td> 194<td>The planned distance between the left and right cameras. This is measured in millimeters. It has a fixed value of <CODE>35.0f</CODE>.</td> 195 </tr> 196 <tr> 197 <td width="100"> </td> 198 <th> 199<span class="argument">imageWidth</span> 200 </th> 201<td width="100"><a href="../../../../nn_types/s16.html">s16</a></td> 202<td>The width of the image captured when taking a measurement. This is measured in pixels. It has a fixed value of <CODE>640</CODE>.</td> 203 </tr> 204 <tr> 205 <td width="100"> </td> 206 <th> 207<span class="argument">imageHeight</span> 208 </th> 209<td width="100"><a href="../../../../nn_types/s16.html">s16</a></td> 210<td>The height of the image captured when taking a measurement. This is measured in pixels. It has a fixed value of <CODE>480</CODE>.</td> 211 </tr> 212 <tr> 213<th class="category" colspan="4">Other Functions</th> 214 </tr> 215 <tr> 216 <td width="100"> </td> 217 <th> 218<span class="argument">reserved</span> 219 </th> 220<td width="100"><a href="../../../../nn_types/u8.html">u8</a></td> 221<td>A reserved region for future extensions.</td> 222 </tr> </table> 223 </div> 224 </a> 225<h2>Revision History</h2> 226 <div class="section"> 227 <dl class="history"> 228 <dt>2010/05/01</dt> 229<dd>Initial version.<br /> 230 </dd> 231 </dl> 232 </div> 233 <hr><p>CONFIDENTIAL</p></body> 234</html>