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

如何获取视差值 #71

Open
sanbingdedie opened this issue May 9, 2024 · 2 comments
Open

如何获取视差值 #71

sanbingdedie opened this issue May 9, 2024 · 2 comments

Comments

@sanbingdedie
Copy link

作者你好,非常感谢你所作出的卓越贡献。我使用了你预训练好的模型权重,在我所需要的场景下效果很好,但是结果输出的是伪彩图像,我无法获取图中每个像素的具体视差值。请问具体每个像素的具体视差值该如何获取?

@gangweiX
Copy link
Owner

gangweiX commented May 9, 2024

请问你是用哪一个.py文件测试的呢?是evaluate_stereo.py还是demo_imgs.py?在这两个文件中有一行disp = model(,),这个disp直接出的就是视差数值

@sanbingdedie
Copy link
Author

作者你好,非常感谢你的回复,我使用的是demo_imgs.py,如何将输出图转换成每个点的深度信息?就是如何读取每个点具体的视差值,例如获取坐标为(x,y)的点的视差值为2.2个像素

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