vis4d.vis.pointcloud.viewer¶
Viewer implementations to display pointcloud.
- 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.
- class PointCloudVisualizerBackend(class_color_mapping, instance_color_mapping=None)[source]¶
Visualization Backen Interface for Pointclouds.
Creates a new Open3D visualization backend.
- Parameters:
class_color_mapping (list[tuple[int, int ,int]]) – List of length n_classes that maps each class index to a unique color.
instance_color_mapping (list[tuple[int, int ,int]], optional) – List of length n_instances that maps each instance id to a unique color. Defaults to None.
- add_scene(scene)[source]¶
Adds a given Scene3D to the visualization.
- Parameters:
scene (Scene3D) – 3D scene that should be added.
- Return type:
None
- get_current_scene()[source]¶
Returns the currently active scene.
If no scene is available, an new empty one is created.
- Returns:
current pointcloud scene
- Return type:
Modules
Generic classes to visualize and save pointcloud data. |
|
Open3d visualization backend. |