Does the T obtained from the PoseCamera2 in stereo calibration translate Camera 2 in the coordinate system where Camera1's optical center is the origin, or Camera2's ?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to know the poses and positions of two cameras through stereo calibration. Therefore, I prepared Camera 1 and Camera 2, ran the stereocalibrator in the app, and outputted the result with Camera 1's optical center as the origin. The results are shown in the first image and values ① and ②. On the other hand, using the same images, I outputted the result with Camera 2's optical center as the origin, which are shown in the second image and values ③ and ④.
From the first image:
R=[0.745, -0.192, 0.637; 0.188, 0.979, 0.0761; -0.639, 0.0633, 0.766]...①
T=[-1828, -46.8, 57.3]...②
From the second image:
R=[0.745, 0.188, -0.639; -0.192, 0.979, 0.0633; 0.637, 0.0761, 0.766]...③
T=[1406, -311, 1129]...④
Here, I will show the relationship equation taught by a MATLAB staff member before. If the position of Camera 1 is [R1, t1; 0 1], the position of Camera 2 is [R2, t2; 0 1], and PoseCamera2 is [R, T; 0 1], then the following relationship holds.
R1 = R * R2...⑤
t1 = R * t2 + T...⑥
I will verify if ⑥ is satisfied using the first image and ②, but since Camera 2 is not moved to Camera 1, it does not satisfy the equation. Similarly, verifying with the second image and ④, it is also not a reasonable result. However, in the first image, where Camera 1's optical center is represented as the origin, if you move Camera 2 by ② such that Camera 2's optical center is the origin, the positions of Camera 1 and Camera 2 will match. Similarly, in the second image, if you move Camera 2 by ④ with Camera 2's optical center as the origin, it will align with Camera 1.
Additionally, the number of image pairs used during stereo calibration was 30, and the reprojection error was 0.23 pixels from either image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1721131/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1721136/image.png)
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Support Package for USB Webcams finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!