Point Cloud Reconstruction From Disparity Map Not Working

4 ビュー (過去 30 日間)
David 2016 年 2 月 5 日
編集済み: Munin 2022 年 3 月 28 日
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?

回答 (2 件)

Dima Lisin
Dima Lisin 2016 年 2 月 21 日
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.
  1 件のコメント
Munin 2021 年 8 月 30 日
編集済み: Munin 2022 年 2 月 19 日
@Dima Lisin I've attached a reproduction of the issue:
Here's a bulletproof workaround:


Munin 2022 年 3 月 28 日
編集済み: Munin 2022 年 3 月 28 日
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