pysdic.Camera.get_camera_pixel_points#
- Camera.get_camera_pixel_points(mask=None)[source]#
Get the
pixel_pointsof the camera for each pixel.If a mask is provided, it filters the pixel points based on the mask.
The coordinates of the first pixel point are \((0, 0)\) and the coordinates of the last pixel point are \((\text{sensor_height} - 1, \text{sensor_width} - 1)\).
- Parameters:
mask (Optional[
numpy.ndarray], optional) – A boolean mask to filter the pixel points. If None, all pixel points are returned. Default is None. Shape (\(H \times W\),) or (\(H\), \(W\)) where \(H\) is the height and \(W\) is the width of the camera sensor.- Returns:
A 2D array of shape (\(N_p\), 2) representing the pixel points in pixel coordinate system.
- Return type: