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

"project_to_rgbd_image" provides inconsistent depth and color images. #6671

Open
3 tasks done
Darcy-vision opened this issue Feb 29, 2024 · 0 comments
Open
3 tasks done
Labels

Comments

@Darcy-vision
Copy link

Checklist

My Question

device = o3d.core.Device('cuda:0')
pcd_tensor = o3d.t.geometry.PointCloud.from_legacy(pcd, device=device)
intrinisics = o3d.core.Tensor([[fx, 0, cx], [0, fy, cy], [0, 0, 1]], dtype=o3d.core.float32, device=device)

rgbd_reproj = pcd_tensor.project_to_rgbd_image(W, H, intrinisics)
fig, axs = plt.subplots(1, 2)
axs[0].imshow(np.asarray(rgbd_reproj.color.to_legacy()))
axs[1].imshow(np.asarray(rgbd_reproj.depth.to_legacy()))

The depth image and the color image provided by "project_to_rgbd_image" are inconsistent. The color image contains many black scattered invalid areas, while the depth image does not. I understand that the black areas in the color image represent areas where no point cloud is rendered, but why does the depth image have values in those areas?

Figure_1

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

No branches or pull requests

1 participant