manurare / 360monodepth

Code release for 360monodepth. With our framework we achieve monocular depth estimation for high resolution 360° images based on aligning and blending perspective depth maps.
https://manurare.github.io/360monodepth/
MIT License
159 stars 33 forks source link

Convert disparity to depth maps #10

Closed HieuPhan33 closed 2 years ago

HieuPhan33 commented 2 years ago

Hi, thanks for sharing the code.

Based on my understanding, the output erp_dispmap_blend of the depth_estimation() function is the disparity maps not the depth map.

If so, how can I convert disparity to depth and store them as pfm.

Thanks.

cr333 commented 2 years ago

You could use these two functions: https://github.com/manurare/360monodepth/blob/7b81bc471b3bcf4c9db4676805fe68b1a5dc5f0d/code/python/src/utility/depthmap_utils.py#L736 https://github.com/manurare/360monodepth/blob/7b81bc471b3bcf4c9db4676805fe68b1a5dc5f0d/code/python/src/utility/depthmap_utils.py#L660