When using the Computer Vision Toolbox and the "stereoParameters" object how do I transform points in camera 1 coordinates to camera 2 coordinates?
3 views (last 30 days)
Show older comments
MathWorks Support Team
on 26 Aug 2019
Answered: MathWorks Support Team
on 27 Jan 2020
When using the Computer Vision Toolbox and the "stereoParameters" object how do I transform points in camera 1 coordinates to camera 2 coordinates?
Accepted Answer
MathWorks Support Team
on 26 Aug 2019
The equation to go from camera 1 coordinates to camera 2 coordinates is:
R = stereoParameters.RotationOfCamera2;
t = stereoParameters.TranslationOfCamera2;
xyzNew = [x,y,z] *R + t;
Assuming you are using the "estimateCameraParameters()" function to construct the "stereoParameters" object, you can inspect the source code for the construction of "stereoParameters" by typing in the MATLAB command window:
>> edit estimateCameraParameters.m
And then clicking the link on the line error to open the source code.
0 Comments
More Answers (0)
See Also
Categories
Find more on Camera Calibration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!