60         pTargetMatrix[0] = sourceMatrix.
r1;
 
   61         pTargetMatrix[1] = sourceMatrix.
r2;
 
   62         pTargetMatrix[2] = sourceMatrix.
r3;
 
   63         pTargetMatrix[3] = sourceMatrix.
r4;
 
   64         pTargetMatrix[4] = sourceMatrix.
r5;
 
   65         pTargetMatrix[5] = sourceMatrix.
r6;
 
   66         pTargetMatrix[6] = sourceMatrix.
r7;
 
   67         pTargetMatrix[7] = sourceMatrix.
r8;
 
   68         pTargetMatrix[8] = sourceMatrix.
r9;
 
   73         pTargetMatrix[0] = sourceMatrix.
r1;
 
   74         pTargetMatrix[1] = sourceMatrix.
r2;
 
   75         pTargetMatrix[2] = sourceMatrix.
r3;
 
   76         pTargetMatrix[3] = sourceMatrix.
r4;
 
   77         pTargetMatrix[4] = sourceMatrix.
r5;
 
   78         pTargetMatrix[5] = sourceMatrix.
r6;
 
   79         pTargetMatrix[6] = sourceMatrix.
r7;
 
   80         pTargetMatrix[7] = sourceMatrix.
r8;
 
   81         pTargetMatrix[8] = sourceMatrix.
r9;
 
   86         pTargetVector[0] = (float) sourceVector.
x;
 
   87         pTargetVector[1] = (
float) sourceVector.
y;
 
   88         pTargetVector[2] = (float) sourceVector.
z;
 
   93         pTargetMatrix[0] = (float) cameraParameters.
focalLength.
x;
 
   97         pTargetMatrix[4] = (float) cameraParameters.
focalLength.
y;
 
  100         pTargetMatrix[7] = 0;
 
  101         pTargetMatrix[8] = 1;
 
  107         CvStereoCamera stereoParams;
 
  108         CvCamera leftCamera, rightCamera;
 
  110         stereoParams.camera[0] = &leftCamera;
 
  111         stereoParams.camera[1] = &rightCamera;
 
  113         stereoParams.camera[0]->imgSize[0] = (float) pStereoCalibration->
width;
 
  114     stereoParams.camera[0]->imgSize[1] = (
float) pStereoCalibration->
height;
 
  115     stereoParams.camera[1]->imgSize[0] = (float) pStereoCalibration->
width;
 
  116     stereoParams.camera[1]->imgSize[1] = (
float) pStereoCalibration->
height;
 
  126         leftCamera.imgSize[0] = (float) leftCameraParameters.
width;
 
  127         leftCamera.imgSize[1] = (
float) leftCameraParameters.
height;
 
  129         for (i = 0; i < 4; i++) leftCamera.distortion[i] = (
float) leftCameraParameters.
distortion[i];
 
  133         rightCamera.imgSize[0] = (float) rightCameraParameters.
width;
 
  134         rightCamera.imgSize[1] = (
float) rightCameraParameters.
height;
 
  136         for (i = 0; i < 4; i++) rightCamera.distortion[i] = (
float) rightCameraParameters.
distortion[i];
 
  140         icvComputeRestStereoParams(&stereoParams);
 
  143                 float(stereoParams.coeffs[0][0][0]),
 
  144                 float(stereoParams.coeffs[0][0][1]),
 
  145                 float(stereoParams.coeffs[0][0][2]),
 
  146                 float(stereoParams.coeffs[0][1][0]),
 
  147                 float(stereoParams.coeffs[0][1][1]),
 
  148                 float(stereoParams.coeffs[0][1][2]),
 
  149                 float(stereoParams.coeffs[0][2][0]),
 
  150                 float(stereoParams.coeffs[0][2][1]),
 
  151                 float(stereoParams.coeffs[0][2][2])
 
  155                 float(stereoParams.coeffs[1][0][0]),
 
  156                 float(stereoParams.coeffs[1][0][1]),
 
  157                 float(stereoParams.coeffs[1][0][2]),
 
  158                 float(stereoParams.coeffs[1][1][0]),
 
  159                 float(stereoParams.coeffs[1][1][1]),
 
  160                 float(stereoParams.coeffs[1][1][2]),
 
  161                 float(stereoParams.coeffs[1][2][0]),
 
  162                 float(stereoParams.coeffs[1][2][1]),
 
  163                 float(stereoParams.coeffs[1][2][2])
 
const CCalibration * GetRightCalibration() const 
Access to the instance of CCalibration for the camera model of the right camera. 
void CalculateRectificationHomographies(CStereoCalibration *pStereoCalibration)
Vec3d m_translation_inverse
Translation vector of the inverted extrinsic transformation. 
static void FillVector(float *pTargetVector, const Vec3d &sourceVector)
static void FillCalibrationMatrix(float *pTargetMatrix, const CCalibration::CCameraParameters &cameraParameters)
const CCameraParameters & GetCameraParameters() const 
Gives access to the camera parameters. 
const CCalibration * GetLeftCalibration() const 
Access to the instance of CCalibration for the camera model of the left camera. 
Data structure for the representation of a 3D vector. 
void SetMat(Mat3d &matrix, float r1, float r2, float r3, float r4, float r5, float r6, float r7, float r8, float r9)
Mat3d rectificationHomographyRight
The homography for the rectification mapping of the right image. 
static void FillMatrix(float *pTargetMatrix, const Mat3d &sourceMatrix)
Mat3d m_rotation_inverse
Rotation matrix of the inverted extrinsic transformation. 
int height
The height of the images of the stereo camera system in pixels. 
Data structure for the representation of a 3x3 matrix. 
Camera model and functions for a stereo camera system. 
Mat3d rectificationHomographyLeft
The homography for the rectification mapping of the right image. 
int width
The width of the images of the stereo camera system in pixels. 
Struct containing all parameters of the camera model.