SensatUrban icon indicating copy to clipboard operation
SensatUrban copied to clipboard

How to visualize the data (ply files

Open RikidWai opened this issue 2 years ago • 1 comments

I found a function as follows but it seems not working... Any help is appreciated.

    @staticmethod
    def draw_pc(pc_xyzrgb):
        pc = o3d.geometry.PointCloud()
        pc.points = o3d.utility.Vector3dVector(pc_xyzrgb[:, 0:3])
        if pc_xyzrgb.shape[1] == 3:
            o3d.visualization.draw_geometries([pc])
            return 0
        if np.max(pc_xyzrgb[:, 3:6]) > 20:  ## 0-255
            pc.colors = o3d.utility.Vector3dVector(pc_xyzrgb[:, 3:6] / 255.)
        else:
            pc.colors = o3d.utility.Vector3dVector(pc_xyzrgb[:, 3:6])

        o3d.geometry.PointCloud.estimate_normals(pc)
        o3d.visualization.draw_geometries([pc], width=1000, height=1000)
        return 0

RikidWai avatar Nov 09 '22 08:11 RikidWai

Can you submit new results on the evaluation's website now?

fangtang12 avatar Nov 10 '22 14:11 fangtang12