Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About cityscapes disparity to depth_gt #55

Open
willemeng opened this issue Aug 17, 2022 · 2 comments
Open

About cityscapes disparity to depth_gt #55

willemeng opened this issue Aug 17, 2022 · 2 comments

Comments

@willemeng
Copy link

Hello, you mentioned in your README "We provide ground truth depth files HERE, which were converted from pixel disparities using intrinsics and the known baseline. Download this and unzip into splits/cityscapes.", how do you deal with the original disparity data and generate the .npy, I'm having some issues trying. If so, is it possible to make the code public?

@willemeng
Copy link
Author

0_disp
like this

@JamieWatson683
Copy link
Collaborator

To convert a disparity map to a depth map you need the focal length in pixels (call this f, taken as the top left element of the intrinsics matrix, i.e. fx ) and the baseline between the 2 stereo cameras (call this b).

Given these you can obtain depth via depth = f * b / disparity

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants