Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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 Commento
Gilad Gottlieb
Gilad Gottlieb il 20 Ago 2020
Modificato: Gilad Gottlieb il 20 Ago 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.

Accedi per commentare.

Risposte (2)

Leo Leo
Leo Leo il 29 Dic 2019
i have the same question

Holger Mettelsiefen
Holger Mettelsiefen il 22 Ago 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

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by