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 want to obtain the coordinates of a point cloud using the mouse in GLViewWidget. The point cloud is read using Open3D and displayed using pyqtgraph. opengl. However, I don't know how to obtain the 3D world coordinates, so I can only obtain the screen coordinates. The following is my point cloud reading and visualization code. I am using pyqtgraph version 0.13.3 and pyqt5 version 5.15.9. Can anyone help me? Thank you very much.
`def read_pointcloud(self):
# print("test well")
fileName, _ = QFileDialog.getOpenFileName(None, "选择 .pcd 文件", "", "PCD Files (*.pcd)")
if fileName != '':
self.pcd = o3d.io.read_point_cloud(fileName)
pos_view=self.pcd.get_center()
self.textEdit.clear()
np_points = np.asarray(self.pcd.points)
It seems that my pyqtgraph version is too high, so some of the previous functions have been deprecated, such as maptoscience, maptoview, and other methods
I want to obtain the coordinates of a point cloud using the mouse in GLViewWidget. The point cloud is read using Open3D and displayed using pyqtgraph. opengl. However, I don't know how to obtain the 3D world coordinates, so I can only obtain the screen coordinates. The following is my point cloud reading and visualization code. I am using pyqtgraph version 0.13.3 and pyqt5 version 5.15.9. Can anyone help me? Thank you very much.
`def read_pointcloud(self):
# print("test well")
fileName, _ = QFileDialog.getOpenFileName(None, "选择 .pcd 文件", "", "PCD Files (*.pcd)")
if fileName != '':
self.pcd = o3d.io.read_point_cloud(fileName)
pos_view=self.pcd.get_center()
self.textEdit.clear()
np_points = np.asarray(self.pcd.points)
`
The text was updated successfully, but these errors were encountered: