pysdic.NoExtrinsic.compute_rays#
- NoExtrinsic.compute_rays(normalized_points)[source]#
Compute the rays of the camera passing through the given normalized points (only for 3D world points).
As for an orthographic camera with an identity pose, all the rays are parallel to the \(z\) axis. The origin of each ray is the normalized point on the plane \(Z = 0\) and the direction is \((0, 0, 1)\).
- Parameters:
normalized_points (ArrayLike) – Normalized points. Shape
(..., 2).- Returns:
Rays in 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:
- Raises:
ValueError – If the world points are 2D (
input_dim=2).