pysdic.WorldPlanePerspectiveExtrinsic.compute_rays#

WorldPlanePerspectiveExtrinsic.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.PerspectiveExtrinsic: they start from the camera center and are expressed in the 3D world coordinate system (the world plane being \(Z_w = 0\)):

\[\begin{split}\vec{O}_w = - R^T \cdot T, \qquad \vec{d}_w = \frac{R^T \vec{X}_n}{\| R^T \vec{X}_n \|} \quad \text{with} \quad \vec{X}_n = \begin{bmatrix} x_n \\ y_n \\ 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:

pysdic.Rays