How do I determine the position of camera2 after Stereo Camera calibration ?

6 次查看(过去 30 天)
I ran the MATLAB example:
openExample('vision/StereoCalibrationExample')
Now I would like to add two 3D points to the "showExtrinsics" figure. One at the Camera1 center and the other at Camera2 center. For which I use the code:
showExtrinsics(params);
hold on
scatter3(0,0,0,'*');
scatter3(params.TranslationOfCamera2(1),params.TranslationOfCamera2(2),params.TranslationOfCamera2(3),'*');
As you can see the plot is wrong, I even tried to interchange the Y and Z axis, I cannot figure out why. Could someone guide me?
  1 个评论
Elizabeth Reese
Elizabeth Reese 2017-8-30
I think you are on the right track, but you can instead take the position of camera 1 and subtract the TranslationOfCamera2.
scatter3(-params.TranslationOfCamera2(1),-params.TranslationOfCamera2(2),-params.TranslationOfCamera2(3),'*');
By visual inspection, this puts the "*" in the center of the second camera.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Camera Calibration 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by