When using the Computer Vision Toolbox and the "stereoParameters" object how do I transform points in camera 1 coordinates to camera 2 coordinates?

4 Ansichten (letzte 30 Tage)
When using the Computer Vision Toolbox and the "stereoParameters" object how do I transform points in camera 1 coordinates to camera 2 coordinates?

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 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.

Weitere Antworten (0)

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by