pysdic.ImagePlotter.add_sensor#
- ImagePlotter.add_sensor(*, color='lightgray', show_pixel_grid=False, pixel_grid_color='gray', pixel_grid_width=0.5, pixel_grid_opacity=0.5)[source]#
Draw the sensor of the camera and optionally the grid of the pixels.
- Parameters:
color (Optional[Union[str, Tuple[Real, …]]], optional (default:
"lightgray")) – The color of the sensor. If None, only the pixel grid is drawn (e.g. over an image).show_pixel_grid (bool, optional (default:
False)) – Whether to draw the borders of the pixels.pixel_grid_color (Union[str, Tuple[Real, …]], optional (default:
"gray")) – The color of the pixel grid.pixel_grid_width (Real, optional (default:
0.5)) – The width of the lines of the pixel grid (strictly positive).pixel_grid_opacity (Real, optional (default:
0.5)) – The opacity of the pixel grid, between0.0and1.0.
- Return type:
None