Page 1 of 1

Disparity map noise

Posted: Fri Mar 25, 2022 12:54 pm
by Sencis
I tried to adjust various map parameters but I get a lot of noise:

SBM:
Безымянный5.png
Безымянный5.png (507.7 KiB) Viewed 6964 times
SGBM:
Снимок.PNG
Снимок.PNG (920.4 KiB) Viewed 6964 times
Current Settings:
config.png
config.png (152.28 KiB) Viewed 6964 times
Could this be related to the 300mm base between cameras or camera calibration?

Re: Disparity map noise

Posted: Mon Apr 04, 2022 11:06 am
by Realizator
Hey Sencis,

1. According to your first image, youer left and right images are swapped, or you are using the inverses colorizing pattern. With the defaul settings red color means nearby objects, and the dark blue means far objects. Please check this.

2. You can find that the building borders, as well as the tree borders on the right, are sharp. To get the detailed depth map of the branches with the snow, you should decrease the blocksize and reduce the pre-filter cap value. To sau briefly, it it better to do smoothing after getting the map, but not brfore. Pre-filter is equivalent go gauss noice.

3. 300mm base is good for the objects which are far from the camera, and is bad for the objects nearby (like a few meters). If yo'll set the disparity map parameters to see both far and near objects with 300mm base (i.e. mindisparity and disparity range), you'll get a noicy image (and a lot of overcalculations).