CentralCamera.ray#

CentralCamera.ray(points: ndarray | float | int | list[float | int] | tuple[float | int, ...], pose: SE3 | None = None) Line3[source]#

Project image plane points to a ray

Parameters:
  • points (ndarray(2,N)) – image plane points

  • pose (SE3, optional) – camera pose, defaults to None

Returns:

corresponding Plucker lines

Return type:

Line3

For each image plane point compute the equation of a Plucker line that represents the 3D ray from the camera origin through the image plane point.

Example:

>>> from machinevisiontoolbox import CentralCamera
>>> camera = CentralCamera.Default()
>>> line = camera.ray((100, 200))
>>> line
Line3([-0, 0, 0, -0.5, -0.375, 1])
References:
Seealso:

Line3