pysdic.WorldPlaneOrthographicExtrinsic.compute_rays#
- WorldPlaneOrthographicExtrinsic.compute_rays(normalized_points)[source]#
Compute the rays of the camera passing through the given normalized points.
The rays are the same as for
pysdic.OrthographicExtrinsic: they are parallel to the \(z\) axis of the camera and are expressed in the 3D world coordinate system (the world plane being \(Z_w = 0\)):\[\begin{split}\vec{O}_w = R^T \cdot \left( \begin{bmatrix} x_n \\ y_n \\ 0 \end{bmatrix} - T \right), \qquad \vec{d}_w = R^T \cdot \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}\end{split}\]- Parameters:
normalized_points (ArrayLike) – Normalized points in the camera coordinate system. Shape
(..., 2).- Returns:
Rays in 3D world coordinates with shape
(..., 6)(same batch shape as the input points), where the last dimension encodes the ray origin(x, y, z)and the unit direction(dx, dy, dz).- Return type: