geo3d.visualization.validation

Classes

ValidationVisualizer

Validation visualizer that highlights one classification label.

Module Contents

class geo3d.visualization.validation.ValidationVisualizer(backend: str = 'desktop', object_mode: str = 'z', object_cmap: str = 'plasma', background_mode: str = 'intensity', background_cmap: str = 'viridis', background: tuple[float, float, float] = (1, 1, 1), point_size: int = 3, port: int = 8888)

Validation visualizer that highlights one classification label.

The visualization uses distinct color mappings for the selected object label and the remaining background points.

viz
object_mode = 'z'
object_cmap = 'plasma'
background_mode = 'intensity'
background_cmap = 'viridis'
_compute_colors(pcd_array: numpy.ndarray, label: int) numpy.ndarray

Compute object and background colors for validation display.

Parameters:
  • pcd_array – Structured point cloud array containing classification data.

  • label – Target classification label to highlight.

Returns:

RGB color values for every point in the point cloud.

show(pcd_array: numpy.ndarray, label: int, title: str = 'Validation') None

Show validation visualization for a selected label.

Parameters:
  • pcd_array – Structured numpy point cloud array.

  • label – Classification label to highlight.

  • title – Window or page title for the visualization.

update(pcd_array: numpy.ndarray, label: int, title: str = 'Validation') None

Update the validation view with new point cloud data.

Parameters:
  • pcd_array – Structured numpy point cloud array.

  • label – Classification label to highlight.

  • title – Window or page title for the visualization.

close() None

Close the visualizer session and release any web resources.