Transformation from "triangulate" -coordinates to "reconstructScene" -coordinates

3 vues (au cours des 30 derniers jours)
Teuvo Heimonen
Teuvo Heimonen le 11 Avr 2019
We have a calibrated stereo camera system, which we use to both motion estimation and to measure real 3d objects. We solve 3d coordinates by using both
a) disparity map and reconstructScene -function (dense point cloud) and
b) SURF-features and "triangulate" function (sparse point cloud).
The 3d coordinates obtained by these two different methods seem to be in different coordinate system. How can we transform sparse point cloud to the coordinate system of the dense point cloud ie what is the transformation matrix between these two systems? I suppose we should be able to derive the transformation from stereo parameters (and this is also done somewhere in the intrinsic functions of the computer vision toolbox).
Below are rough outlines of both methods:
% Dense point cloud approach
% Rectify images
[J1, J2] = rectifyStereoImages(I1, I2,stereoParameters,'OutputView','full');
% Solve disparities
...
% Backproject
point3D = reconstructScene(disparities, stereoParameters);
% Sparse point cloud approach
% Undistort images
params = stereoParameters.CameraParameters1;
I1 = undistortImage(I1,params);
params = stereoParameters.CameraParameters2;
I2 = undistortImage(I{2},params);
% Detect, extract, and match SURF-features
...
% Backproject
[XYZ,reprojectionErrors] = triangulate(matchedPoints1,matchedPoints2,stereoParameters);
  1 commentaire
Gilad Gottlieb
Gilad Gottlieb le 20 Août 2020
Modifié(e) : Gilad Gottlieb le 20 Août 2020
Have you managed to solve the problem?
I suspect that it is related to the homography matrix for the rectification.
as indicated in ReconstructScene, the dense point cloud suppose to be represented in camera 1 coordinate system, however when i darw sparse points in the same figure they seems to be translated apart.

Connectez-vous pour commenter.

Réponses (2)

Leo Leo
Leo Leo le 29 Déc 2019
i have the same question

Holger Mettelsiefen
Holger Mettelsiefen le 22 Août 2022
I think this question is similar, and the accepted answer works out:
https://www.mathworks.com/matlabcentral/answers/1780505-match-the-coordinate-systems-of-triangulate-and-reconstructscene-with-disparitysgm

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by