+
    åûjL  ã                   ó–   € R t ^RIHtHtHt ^RIHtHtHt ^RI	H
t
Ht ^RIHtHtHt ^RIHtHtHt ^RIHtHtHt ^RIHtHt . R	OtR# )
a	  Camera models: project 3D points to pixels and back, through lenses and stereo rigs.

Points are in the camera frame, +X right, +Y down and +Z forward, unless a function takes extrinsics. Pixels are
``(u, v)`` = (column, row) with integer pixel centres, so a centred principal point is ``cx = (W - 1) / 2``.
Normalized coordinates ``(x / z, y / z)`` are where a camera ray meets the ``z = 1`` plane. Intrinsics come as a
``(*, 3, 3)`` ``K``, as a flat ``[fx, fy, cx, cy, ...]`` vector, or, in :class:`PinholeCamera`, as ``(B, 4, 4)``
matrices next to world-to-camera extrinsics. Depth is the camera-frame ``z`` unless a ``normalize`` flag reads it as
the Euclidean ray length. The camera-conventions page of the documentation compares these with other libraries.

Which function to use:

- Camera-frame points to pixels with a ``3x3`` ``K``: :func:`project_points`; pixels at given depths back to
  camera-frame points: :func:`unproject_points`.
- World points to pixels and back through cameras with extrinsics: :class:`PinholeCamera`. A depth map to
  camera-frame points, and those to another camera's pixels, with its ``(B, 4, 4)`` matrices: :func:`pixel2cam`
  and :func:`cam2pixel`.
- Camera-frame points to the image plane and back, without intrinsics, to compose a camera model:
  :func:`project_points_z1` and :func:`unproject_points_z1` (perspective, onto the normalized ``z = 1`` plane),
  :func:`project_points_orthographic` and :func:`unproject_points_orthographic` (dropping ``z``); their derivatives
  :func:`dx_project_points_z1` (the ``(..., 2, 3)`` Jacobian) and :func:`dx_project_points_orthographic`
  (``du/dx`` alone).
- Normalized points to pixels and back with a flat parameter vector: :func:`distort_points_affine` and
  :func:`undistort_points_affine` (``[fx, fy, cx, cy]``, no lens distortion), :func:`distort_points_kannala_brandt`
  and :func:`undistort_points_kannala_brandt` (fisheye, eight parameters); their Jacobians
  :func:`dx_distort_points_affine` and :func:`dx_distort_points_kannala_brandt`. For OpenCV's Brown-Conrady
  coefficients on pixel coordinates, use :mod:`kornia.geometry.calibration`.
- 3D points from a rectified stereo disparity map: :class:`StereoCamera`, from the two projection matrices, or
  :func:`reproject_disparity_to_3D`, from a ``Q`` matrix.
)Údistort_points_affineÚdx_distort_points_affineÚundistort_points_affine)Údistort_points_kannala_brandtÚ dx_distort_points_kannala_brandtÚundistort_points_kannala_brandt)Úproject_pointsÚunproject_points)ÚPinholeCameraÚ	cam2pixelÚ	pixel2cam)Údx_project_points_orthographicÚproject_points_orthographicÚunproject_points_orthographic)Údx_project_points_z1Úproject_points_z1Úunproject_points_z1)ÚStereoCameraÚreproject_disparity_to_3DN)r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r	   r   r   )Ú__doc__Údistortion_affiner   r   r   Údistortion_kannala_brandtr   r   r   Úperspectiver   r	   Úpinholer
   r   r   Úprojection_orthographicr   r   r   Úprojection_z1r   r   r   Ústereor   r   Ú__all__© ó    Ú[C:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\kornia\geometry\camera\__init__.pyÚ<module>r!      sE   ðñ$÷< hÑ g÷ñ ÷
 :ß 8Ñ 8÷ñ ÷
 XÑ Wß ;ò‚r   