Point Cloud Reconstruction From Disparity Map Not Working

6 views (last 30 days)
Hi,
So I have two images that I have created a disparity map and then point cloud with. However, this is far from the shape of the actual object. The disparity map is pretty accurate, however this is not. Does this have to do with the camera calibration? Additionally, the point cloud seems piece-wise. Is this how its supposed to be?

Answers (2)

Dima Lisin
Dima Lisin on 21 Feb 2016
Hi David,
Can you please post your disparity map and the stereoParameters object? Also, it would help if you could post the images.
Off the top of my head, I would try restricting the range of the Z-coordinates. In other words, exclude the points where Z is negative or too large from the point cloud. It may well be that the point cloud you are seeing is dominated by noise.
Also, check if camera 1 is on the left or on the right, as you look in the same direction as the cameras.

Munin
Munin on 28 Mar 2022
Edited: Munin on 28 Mar 2022
I made a support ticket for it because I found this during my dissertation. It is not considered a bug by the MathWorks team as the point cloud has the same number of points as the original disparity map, despite being 1000x the scale of the world scene.

Community Treasure Hunt

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

Start Hunting!

Translated by