pysdic.View.visualize_projected_point_cloud#
- View.visualize_projected_point_cloud(point_cloud, points_color='black', points_size=5, points_opacity=1.0, clip_sensor=True, show_pixel_grid=False, title=None)[source]#
Visualize the projected 2D points of a
pysdic.PointCloudon a 2D plot using matplotlib.Simply calls the camera’s own visualization method with image from the view.
See also
pysdic.Camera.visualize_projected_point_cloud()for the camera’s own visualization method.pysdic.View.visualize_projected_mesh()for visualizing projected meshes.pysdic.View.visualize_image()for visualizing the view’s image.pysdic.PointCloud()for the structure of the input point cloud.
- Parameters:
point_cloud (PointCloud) – An instance of PointCloud containing the 3D points in the world coordinate system to be projected and visualized.
points_color (str, optional) – The color of the projected points in the plot. Default is “black”.
points_size (int, optional) – The size of the projected points in the plot. Default is 5.
points_opacity (float, optional) – The opacity of the projected points in the plot. Default is 1.0 (fully opaque).
clip_sensor (bool, optional) – If True, only the points that are projected within the camera sensor dimensions are visualized. Default is True.
show_pixel_grid (bool, optional) – If True, a grid representing the pixel layout of the camera sensor is displayed in the background. Default is False.
title (Optional[str], optional) – An optional title for the plot. If None, no title is displayed. Default is None.
- Return type:
None