1 #ifndef __fovis_stereo_calibration_hpp__
2 #define __fovis_stereo_calibration_hpp__
6 #include "camera_intrinsics.hpp"
7 #include "rectification.hpp"
54 double fx_inv = 1./_rectified_parameters.
fx;
55 double base_inv = 1./getBaseline();
56 double cx = _rectified_parameters.
cx;
57 double cy = _rectified_parameters.
cy;
58 Eigen::Matrix4d result;
60 fx_inv , 0 , 0 , -cx * fx_inv ,
61 0 , fx_inv , 0 , -cy * fx_inv ,
63 0 , 0 , fx_inv*base_inv , 0;
71 return _rectified_parameters.
width;
78 return _rectified_parameters.
height;
81 double getBaseline()
const {
85 const Rectification* getLeftRectification()
const {
86 return _left_rectification;
89 const Rectification* getRightRectification()
const {
90 return _right_rectification;
93 const CameraIntrinsicsParameters& getRectifiedParameters()
const {
94 return _rectified_parameters;
100 StereoCalibration*
makeCopy()
const;
103 StereoCalibration() { }
106 StereoCalibrationParameters _parameters;
107 CameraIntrinsicsParameters _rectified_parameters;
108 Rectification* _left_rectification;
109 Rectification* _right_rectification;
CameraIntrinsicsParameters left_parameters
Definition: stereo_calibration.hpp:30
int getWidth() const
Definition: stereo_calibration.hpp:70
int height
Definition: camera_intrinsics.hpp:49
double right_to_left_rotation[4]
Definition: stereo_calibration.hpp:25
int getHeight() const
Definition: stereo_calibration.hpp:77
Computes useful information from a StereoCalibrationParameters object.
Definition: stereo_calibration.hpp:42
quick and dirty profiling tool.inspired by the matlab tic/toc command
Definition: camera_intrinsics.hpp:6
StereoCalibration * makeCopy() const
double cx
Definition: camera_intrinsics.hpp:64
double cy
Definition: camera_intrinsics.hpp:69
int width
Definition: camera_intrinsics.hpp:44
Intrinsic parameters for a pinhole camera with plumb-bob distortion model.
Definition: camera_intrinsics.hpp:14
double right_to_left_translation[3]
Definition: stereo_calibration.hpp:21
double fx
Definition: camera_intrinsics.hpp:54
Calibration data structure for stereo cameras.
Definition: stereo_calibration.hpp:16
Eigen::Matrix4d getUvdToXyz() const
Definition: stereo_calibration.hpp:53
CameraIntrinsicsParameters right_parameters
Definition: stereo_calibration.hpp:35