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

Depth map #68

Open
chaimaOues opened this issue Jul 7, 2022 · 2 comments
Open

Depth map #68

chaimaOues opened this issue Jul 7, 2022 · 2 comments

Comments

@chaimaOues
Copy link

Hello, with this code we can determinate only the image disparity.
How can I convert the image disparity into depth map ?
thank you

@mli0603
Copy link
Owner

mli0603 commented Jul 8, 2022

depth = f * b / disp, where f is focal length and b is baseline

@chaimaOues
Copy link
Author

I found that for KITTI 2015 the focal length and baseline are 721 pixels and 0.54 m and i applied this formula: Depth= (54 * 721 )/ (disp_pred) I got this result:
resultDepth

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