megvii-research / CREStereo

Official MegEngine implementation of CREStereo(CVPR 2022 Oral).
Apache License 2.0
481 stars 59 forks source link

The issue of disparity to depth conversion #56

Open xzzsmart opened 9 months ago

xzzsmart commented 9 months ago

Hi, thanks for your work. it is a greate work.. When I wanted to convert the disparity map into a depth map, using the formula Z=b f/d, I found that the depth was not accurate. How can the disparity map be converted to depth? I tested the parallax of an object at a given distance and deduced the value of b f. I found that this value would change, which does not comply with the formula. Is the value of the disparity map correct? I really hope for your reply.

HXB-1997 commented 9 months ago

I have met the same issue,too @zsc @