Open3D
Open3D copied to clipboard
project_to_depth_image ERROR Open3D version 0.18
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
main
branch).
Describe the issue
When trying to project a pointcloud to rgbd image, I get this error "IndexError: invalid unordered_map<K, T> key".
Steps to reproduce the bug
import open3d as o3d
import numpy as np
device = o3d.core.Device("CPU:0")
dtype = o3d.core.float32
pcd = o3d.t.geometry.PointCloud()
test = o3d.io.read_point_cloud("pcdFinal.pcd") #use any pointcloud
pcd.from_legacy(test)
pcd.point.colors = o3d.core.Tensor(np.asarray(test.colors), dtype, device)
intr = o3d.core.Tensor([[924.2759399414062, 0.0, 640], [0.0, 924.2759399414062, 360],
[0, 0, 1]])
pcd.project_to_depth_image(width = 1280, height = 720, intrinsics = intr )
Error message
pcd.project_to_depth_image(width = 1280, height = 720, intrinsics = intr ) IndexError: invalid unordered_map<K, T> key
Expected behavior
No response
Open3D, Python and System information
- Operating system: Windows 10 64-bit
- Python version: Python 3.9.4 / output from `import sys; print(sys.version)`
- Open3D version: 0.18.0
- System architecture: x64
- Is this a remote workstation?: no
- How did you install Open3D?: pip
Additional information
No response