cabaret.Camera.on_camera_mask#
- Camera.on_camera_mask(pixel_coords: ndarray) ndarray[source]#
Clip the given pixel coordinates to the camera’s bounds.
- Parameters:
pixel_coords (np.ndarray) – An array of shape (2, n) containing the pixel coordinates to be clipped. First row is x-coordinates, second row is y-coordinates.
- Returns:
A boolean array indicating which coordinates are within the camera’s bounds.
- Return type:
np.ndarray