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
I have a question why the two libraries produce the different image of the same point cloud. The difference is in the Z-axis visualization — points (in the example below lines) have different distance, but the dataset is the same.
I can understand it, because X and Y coordinates are much lower, than for Z (file attached). So, my question is how to achieve the same picture in the Open3D — maybe you already have some generic solution for it? I just figured out how to make it manually, reducing the Z-coordinate multiplying it (commented line of code in the MRE).
importmatplotlib.pyplotaspltimportnumpyasnpimportopen3daso3dpc_matrix=np.genfromtxt("matrix8-10.csv", delimiter=",")
# Matplotlibx, y, z=pc_matrix[:, 0], pc_matrix[:, 1], pc_matrix[:, 2]
fig=plt.figure(figsize=(8, 8))
ax=fig.add_subplot(111, projection="3d")
ax.scatter(x, y, z)
plt.show()
# Open3Dpcd=o3d.geometry.PointCloud()
# this reduces all the values of Z-axis (uncomment this line for see the desired picture)# pc_matrix = [[point[0], point[1], point[2] * 0.3] for point in pc_matrix]pcd.points=o3d.utility.Vector3dVector(pc_matrix)
pcd.colors=o3d.utility.Vector3dVector([[0, 0, 255] forpointinpc_matrix])
visualizer=o3d.visualization.Visualizer()
visualizer.create_window()
visualizer.add_geometry(pcd)
render_option=visualizer.get_render_option()
render_option.background_color= [0, 0, 0]
visualizer.run()
So, this code produce following visualizations:
But, the desired image in Open3D is:
The dataset I used for the visualization: matrix8-10.csv
The text was updated successfully, but these errors were encountered:
Checklist
main
branch).My Question
I have a question why the two libraries produce the different image of the same point cloud. The difference is in the Z-axis visualization — points (in the example below lines) have different distance, but the dataset is the same.
I can understand it, because X and Y coordinates are much lower, than for Z (file attached). So, my question is how to achieve the same picture in the Open3D — maybe you already have some generic solution for it? I just figured out how to make it manually, reducing the Z-coordinate multiplying it (commented line of code in the MRE).
So, this code produce following visualizations:
But, the desired image in Open3D is:
The dataset I used for the visualization:
matrix8-10.csv
The text was updated successfully, but these errors were encountered: