pysdic.Camera.get_camera_pixel_points#
- Camera.get_camera_pixel_points(mask=None)[source]#
Get the
pixel_points\((u, v)\) of the camera for each pixel, in row-major order.The first pixel point is \((0, 0)\) and the last one is \((H - 1, W - 1)\).
- Parameters:
mask (Optional[ArrayLike], optional (default:
None)) – A boolean mask to filter the pixel points, with shape \((H \times W,)\) or \((H, W)\) where \(H\) and \(W\) are the height and width of the camera sensor. If None, all pixel points are returned.- Returns:
An array of shape \((N_p, 2)\) in float64 dtype representing the pixel points (row, column).
- Return type:
- Raises:
TypeError – If the mask is not a boolean array.
ValueError – If the mask has a wrong shape.