vis4d.vis.pointcloud.viewer.open3d_viewer

Open3d visualization backend.

Classes

Open3DVisualizationBackend(class_color_mapping)

Backend that uses open3d to visualize potincloud data.

PointcloudVisEntry

Entry for a pointcloud to visualize with open3d.

class Open3DVisualizationBackend(class_color_mapping, instance_color_mapping=None)[source]

Backend that uses open3d to visualize potincloud data.

Creates a new Open3D visualization backend.

Parameters:
  • color_mapping (NDArrayF64) – array of size [n_classes, 3] that maps each class index to a unique color.

  • class_color_mapping (list[tuple[int, int, int]]) – List of length n_classes that assigns each class a unique color.

  • instance_color_mapping (list[tuple[int, int, int]], optional) – List of length n_classes that maps each instance id to unqiue color. Defaults to None.

save_to_disk(path_to_out_folder)[source]

Saves the visualization to disk.

Creates files [colors.ply, classes.ply, instances.ply] for each scene

Parameters:

path_to_out_folder (str) – Path to output folder

Return type:

None

show(blocking=False)[source]

Shows the visualization.

Parameters:

blocking (bool) – If the visualization should be blocking and wait for human input.

Return type:

None

class PointcloudVisEntry[source]

Entry for a pointcloud to visualize with open3d.

Only used for typing.