You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a 16bit depth image I want to convert to point clouds using the code below but I get the error:
RuntimeError: [Open3D Error] (class std::shared_ptr __cdecl open3d::geometry::PointCloud::CreateFromDepthImage(const class open3d::geometry::Image &,const class open3d::camera::PinholeCameraIntrinsic &,const class Eigen::Matrix<double,4,4,0,4,4> &,double,double,int,bool)) D:\a\Open3D\Open3D\cpp\open3d\geometry\PointCloudFactory.cpp:171: [CreatePointCloudFromDepthImage] Unsupported image format.
`import open3d as o3d
import matplotlib.pyplot as plt
import numpy as np
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have a 16bit depth image I want to convert to point clouds using the code below but I get the error:
RuntimeError: [Open3D Error] (class std::shared_ptr __cdecl open3d::geometry::PointCloud::CreateFromDepthImage(const class open3d::geometry::Image &,const class open3d::camera::PinholeCameraIntrinsic &,const class Eigen::Matrix<double,4,4,0,4,4> &,double,double,int,bool)) D:\a\Open3D\Open3D\cpp\open3d\geometry\PointCloudFactory.cpp:171: [CreatePointCloudFromDepthImage] Unsupported image format.
`import open3d as o3d
import matplotlib.pyplot as plt
import numpy as np
o3d.t.geometry.PointCloud
raw_depth = o3d.t.io.read_image('outdoor1.png')
pcd = o3d.t.geometry.PointCloud.create_from_depth_image(raw_depth,
o3d.camera.PinholeCameraIntrinsic(
o3d.camera.PinholeCameraIntrinsicParameters.PrimeSenseDefault))
pcd.transform([[1, 0, 0, 0], [0, -1, 0, 0], [0, 0, -1, 0], [0, 0, 0, 1]])
print(np.asarray(pcd.points)[1,:])
o3d.visualization.draw_geometries([pcd])`
the depth image is below:

Any help will be really appreciated!!
Beta Was this translation helpful? Give feedback.
All reactions