MATLAB Answers

Point Cloud Reconstruction From Disparity Map Not Working

5 views (last 30 days)
David
David on 5 Feb 2016
Edited: Munin on 3 Sep 2021
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 (1)

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.

Community Treasure Hunt

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

Start Hunting!