-
Notifications
You must be signed in to change notification settings - Fork 16
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
Problem in Public Available Data #11
Comments
Hello! I'm glad you are able to utilize the dataset. I have graduated from my master's and am very busy working at a startup. Feel free to create a PR with any changes you think could improve the repo! |
Hi, I also encountered weird artifact in the conversion provided in vis_presil.py between raw depth data and the actual depth in meters. The artifact seems to be radial, so I tried to change
The radial artifact seems to disappear but I'm not sure that the results are actual depth in meters. |
I think the code is mostly correct, it just misses the conversion from degrees to radians on line 26 for def ndc2real(depth_ndc):
# depth_ndc: (1080, 1920) float32
h, w = depth_ndc.shape
nc_z = 0.15
fc_z = 600
fov_v = 59 #degrees
nc_h = 2 * nc_z * np.tan(np.radians(fov_v / 2.0))
nc_w = w / h * nc_h
nc_x, nc_y = np.mgrid[:h, :w][::-1].astype(np.float32)
nc_x = (nc_x / (w - 1) * 2 - 1) * nc_w / 2
nc_y = (nc_y / (h - 1) * 2 - 1) * nc_h / 2
d_nc = np.sqrt(nc_x ** 2 + nc_y ** 2 + nc_z ** 2)
depth_real = d_nc / (depth_ndc + (nc_z * d_nc / (2 * fc_z)))
return depth_real |
Hi, I used your publised data but find several problems. Listed below:
It is a great work but with some improvment it will be recognized and utilized better, thanks!
The text was updated successfully, but these errors were encountered: