+
    åûj%  ã                   óB   € R t ^ RIt^ RIHt R R ltR R ltR R ltR# )	z[Orthographic projection of camera-frame points: drop z, append it back, and the derivative.N©ÚKORNIA_CHECK_SHAPEc                óX   € V ^8„  d   QhR\         P                  R\         P                  /# ©é   Úpoints_in_cameraÚreturn©ÚtorchÚTensor)Úformats   "ÚjC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\kornia\geometry\camera\projection_orthographic.pyÚ__annotate__r      s"   € ÷ "%ñ "%´%·,±,ð "%Ä5Ç<Á<ñ "%ó    c                ó0   € \        V RR.4       V R,          # )aN  Project camera-frame points orthographically by dropping z: (x, y, z) -> (x, y).

``uv = project_points_orthographic(points)`` takes camera-frame points ``(..., 3)`` and returns their
``(x, y)`` as ``(..., 2)``, in the units of the points: no division and no intrinsics. Map them to pixels with
:func:`distort_points_affine`. For a perspective camera, use :func:`project_points_z1`, or
:func:`~kornia.geometry.camera.perspective.project_points` for pixels from a ``3x3`` ``K``.

.. math::
    \begin{bmatrix} u \\ v \end{bmatrix} =
    \begin{bmatrix} x \\ y \end{bmatrix}


Args:
    points_in_camera: torch.Tensor representing the points to project with shape ``(..., 3)``.

Returns:
    torch.Tensor representing the projected points with shape ``(..., 2)``.

See Also:
    - :func:`unproject_points_orthographic`: the reverse, appending a ``z``.
    - :func:`dx_project_points_orthographic`: its derivative ``du/dx``.
    - :func:`project_points_z1`: the perspective counterpart, dividing by ``z``.
    - :class:`~kornia.sensors.camera.projection_model.OrthographicProjection`: the same projection on
      ``Vector3`` points.
    - :func:`~kornia.geometry.camera.perspective.project_points`: perspective pixels from a ``3x3`` ``K``.

Example:
    >>> points = torch.tensor([1., 2., 3.])
    >>> project_points_orthographic(points)
    tensor([1., 2.])

Ú*Ú3).:Nr   Nr   ©r   s   &r   Úproject_points_orthographicr      s   € ôB Ð'¨#¨s¨Ô4Ø˜GÕ$Ð$r   c                óx   € V ^8„  d   QhR\         P                  R\         P                  R\         P                  /# )r   r   Ú	extensionr   r	   )r   s   "r   r   r   ?   s0   € ÷ .<ñ .<´E·L±Lð .<ÌUÏ\É\ð .<Ô^c×^jÑ^jñ .<r   c                óÂ   € \        V RR.4       VP                  V P                  ^,
          8X  d
   VR,          p\        VRR.4       \        P                  ! W.RR7      # )aÿ  Unproject orthographic points by appending a z value: (u, v) -> (u, v, z).

``points = unproject_points_orthographic(uv, z)`` takes points ``(..., 2)`` and one ``z`` per point and returns
``(u, v, z)`` as ``(..., 3)``: ``u`` and ``v`` are not scaled. To scale normalized coordinates by a depth, as a
perspective camera does, use :func:`unproject_points_z1` instead.

.. math::
    \begin{bmatrix} x \\ y \\ z \end{bmatrix} =
    \begin{bmatrix} u \\ v \\ w \end{bmatrix}

Convention:
    - ``extension`` becomes the ``z`` component of the result; both a ``(N,)`` and a ``(N, 1)`` extension
      are accepted.
    - ``extension`` must have the points' leading dimensions exactly: it does not broadcast, unlike in
      :func:`unproject_points_z1`, so a ``(1,)`` extension for ``(N, 2)`` points raises ``RuntimeError``.
      A same-rank extension must have a trailing size of 1: an ``(N, 2)`` extension for ``(N, 2)`` points
      raises :class:`~kornia.core.exceptions.ShapeError`.

Args:
    points_in_camera: torch.Tensor representing the points to unproject with shape ``(..., 2)``.
    extension: torch.Tensor representing the extension of the points to unproject with shape ``(..., 1)``
        or ``(...,)``.

Returns:
    torch.Tensor representing the unprojected points with shape ``(..., 3)``.

See Also:
    - :func:`project_points_orthographic`: the reverse, dropping ``z``.
    - :func:`unproject_points_z1`: the perspective counterpart, scaling ``x`` and ``y`` by the depth.
    - :class:`~kornia.sensors.camera.projection_model.OrthographicProjection`: the same unprojection on
      ``Vector2`` points.

Example:
    >>> points = torch.tensor([1., 2.])
    >>> extension = torch.tensor([3.])
    >>> unproject_points_orthographic(points, extension)
    tensor([1., 2., 3.])

r   Ú2Ú1)Údim).Néÿÿÿÿ)r   Úndimr
   Úcat)r   r   s   &&r   Úunproject_points_orthographicr   ?   sY   € ôP Ð'¨#¨s¨Ô4à‡~�~Ð)×.Ñ.°Õ2Ô2Ø˜iÕ(ˆ	Ü�y 3¨ *Ô-ä�9Š9Ð&Ð2¸Ô;Ð;r   c                óX   € V ^8„  d   QhR\         P                  R\         P                  /# r   r	   )r   s   "r   r   r   p   s"   € ÷ 7ñ 7´U·\±\ð 7ÄeÇlÁlñ 7r   c                óX   € \        V RR.4       \        P                  ! V R,          4      # )a?  Return the derivative du/dx of the orthographic projection: ones, one per point.

``d = dx_project_points_orthographic(points)`` takes camera-frame points ``(..., 3)`` and returns the
derivative of ``u`` with respect to ``x`` at each, which is always 1, as ``(..., 1)``. It is not the full
Jacobian: that of the orthographic projection is the constant ``[[1, 0, 0], [0, 1, 0]]``, while
:func:`dx_project_points_z1` returns the full ``(..., 2, 3)`` Jacobian of the perspective projection.

.. math::
    \frac{\partial u}{\partial x} = 1

Args:
    points_in_camera: torch.Tensor representing the points to project with shape ``(..., 3)``.

Returns:
    torch.Tensor representing the derivative of the x projection with respect to the x coordinate, with shape
    ``(..., 1)``.

See Also:
    - :func:`project_points_orthographic`: the projection this differentiates.
    - :func:`dx_project_points_z1`: the full ``(..., 2, 3)`` Jacobian of the perspective projection.

Example:
    >>> points = torch.tensor([1., 2., 3.])
    >>> dx_project_points_orthographic(points)
    tensor([1.])

r   r   ).:é    é   N)r   r
   Ú	ones_liker   s   &r   Údx_project_points_orthographicr$   p   s(   € ô8 Ð'¨#¨s¨Ô4Ü�?Š?Ð+¨HÕ5Ó6Ð6r   )Ú__doc__r
   Úkornia.core.checkr   r   r   r$   © r   r   Ú<module>r(      s$   ðñ$ bó å 0õ"%õJ.<÷b7r   