Open salocinx opened 5 years ago
Hi @salocinx
I'm also looking into a similar method for this
How did it go? Any luck so far?
Stereo camera calibration is more specifically the rectification matrix for two cameras: https://github.com/raulmur/ORB_SLAM2/issues/89#issuecomment-225924981 https://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#stereorectify
Hi @NicksonYap
Yes, I successfully calibrated my stereo camera using the ROS calibration tool on Ubuntu 16.04. I asked the same question on stackoverflow.com, since I didn't got any answer here.
Here's the starting point and you'll get all the matrices (D, K, R and P). I guess raulmur did use this as well.
@salocinx
I suppose you followed this guide? http://wiki.ros.org/camera_calibration/Tutorials/StereoCalibration
@NicksonYap : Yes, that's exactly the guide I followed. There are different versions of ROS for different Linux OS version. I used ROS Kinetic Kane together with Ubuntu 16.04 (Xenial).
I am currently experimenting with a stereo camera like this. I am using 2.8mm and optionally 3.6mm lenses with a resolution of 640x480 pixels for the left and right camera/image.
ORB SLAM 2 lets me define several distortion/rectifying parameters withing the settings file (*.yaml), such as:
I conducted the OpenCV camera calibration using a chessboard like described here (9x7 inner corners and 70mm square length). Later on I used this automated calibration program from MRPT which gives me the same results with less stumbling blocks.
However, in the
YAML
settings file fromstereo_euroc
example I noticed, that I can define these additional parameters for pre-rectifying the images (if I understand this correctly):My questions are the following:
A.) Is my assumption correct, that
D
are thedistortion coefficients
andK
is theintrinsic matrix
acquired from the checkboard calibration procedure ?B.) Is defining
fx
,fy
,cx
,cy
insettings.yaml
sufficient for pre-rectifying the images and successful operation of ORB SLAM 2 ?C.) Do I need
R
andP
matrices for successful operation of ORB SLAM 2 ?D.) How can I acquired the
R
andP
matrices? The OpenCV camera calibration procedure with the checkboard does not provide me these matrices, correct ?