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

d = cv.imread('{}/{:0>6}.png'.format(self.dense_depth_dir, index), -1) / 256. #33

Open
aqr1961 opened this issue Dec 21, 2023 · 1 comment

Comments

@aqr1961
Copy link

aqr1961 commented Dec 21, 2023

为什么读取的深度要除以256呢,因为后面的代码中:
roi_depth_ind = (roi_depth > depth[i] - 3) &
(roi_depth < depth[i] + 3) &
(roi_depth > 0)
depth[i]是一个绝对深度 roi_depth是由深度图d变换而来,他应该代表一个绝对深度,但是d已经除以256了 他似乎并不能代表绝对深度

@SPengLiang
Copy link
Owner

深度图保存时是灰度图,为了精度是先乘256再存成uint16。code里面opencv读取灰度图的那种方式是需要除以256.来获取真实的深度的

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