+
    åûjT  ã                   ó>  € R t ^RIHtHtHtHt ^RIHtHtH	t	H
t
HtHtHtHtHt ^RIHtHtHtHtHtHtHtHt ^RIHt ^RIHtHtHtHtH t H!t!H"t" ^RI#H$t$ ^RI%H&t& . RNR	NR
NRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&Nt'R'# )(aù  Two-view epipolar geometry: estimate F and E, recover the relative pose, triangulate.

The two-view functions take the first image's points first (``points1``, ``x1`` or ``pts1``), then the second
image's; the estimators take ``(B, N, 2)`` tensors. A fundamental matrix ``F`` relates pixel coordinates and an
essential matrix ``E`` normalized camera coordinates :math:`K^{-1} [u, v, 1]^\top`, both with
:math:`x_2^\top F x_1 = 0`: the second image's point on the left, as in OpenCV. Camera poses are world-to-camera
extrinsics, :math:`X_{cam} = R X + t`, and the relative motion ``(R, t)`` of camera 2 to camera 1 takes camera-1
coordinates to camera-2 coordinates, :math:`X_2 = R X_1 + t`; an essential matrix is :math:`[t]_\times R` of that
motion. :ref:`Two-view geometry <two-view-conventions>` compares these conventions with OpenCV's.

Which function to use:

- A model from correspondences known to be inliers: :func:`find_fundamental` from pixels (8 or 7 points, or the
  affine fundamental matrix of two affine cameras from 4 or more),
  :func:`find_essential` from normalized camera coordinates (Nister's 5 points, up to ten candidates). For a plane
  or a pure rotation, :func:`~kornia.geometry.homography.find_homography_dlt`; with outliers,
  :class:`~kornia.geometry.ransac.RANSAC`.
- One model from another: :func:`essential_from_fundamental` and :func:`fundamental_from_essential` with the two
  cameras' intrinsics, :func:`essential_from_Rt` from two camera poses, :func:`fundamental_from_projections` from
  two projection matrices, and :func:`project_to_essential` onto the nearest essential matrix.
- The relative pose from an essential matrix: :func:`motion_from_essential_choose_solution` picks it by cheirality
  from pixel correspondences, and :func:`motion_from_essential` lists the four candidates;
  :func:`decompose_essential_matrix` (SVD) and :func:`decompose_essential_matrix_no_svd` (closed form) return the
  two rotations and the translation that they combine. The relative motion of two known camera poses:
  :func:`relative_camera_motion`.
- How well correspondences fit a fundamental matrix: :func:`sampson_epipolar_distance` (first-order geometric
  error), :func:`symmetrical_epipolar_distance` (both points to their epipolar lines),
  :func:`left_to_right_epipolar_distance` (in image 2) and :func:`right_to_left_epipolar_distance` (in image 1).
- Epipolar lines: :func:`compute_correspond_epilines`; the point on a line nearest to a correspondence,
  :func:`get_closest_point_on_epipolar_line`, built on :func:`get_perpendicular`.
- 3D points from two views: :func:`triangulate_points`.
- Cameras: :func:`projection_from_KRt` composes ``P = K [R | t]`` and :func:`KRt_from_projection` decomposes it;
  :func:`projections_from_fundamental` gives a canonical pair for ``F``; :func:`depth_from_point` gives the depth of
  points in a camera. Intrinsics: :func:`intrinsics_like` (from a focal length and an image size),
  :func:`random_intrinsics`, :func:`scale_intrinsics` (for a resized image).
- Helpers of the estimators: :func:`normalize_points` (Hartley normalization), :func:`normalize_transformation`
  (scale to a unit bottom-right entry), :func:`cross_product_matrix` (the matrix :math:`[x]_\times`).
- A random synthetic scene to test estimators on: :func:`generate_scene`.
)Úleft_to_right_epipolar_distanceÚright_to_left_epipolar_distanceÚsampson_epipolar_distanceÚsymmetrical_epipolar_distance)	Údecompose_essential_matrixÚ!decompose_essential_matrix_no_svdÚessential_from_fundamentalÚessential_from_RtÚfind_essentialÚmotion_from_essentialÚ%motion_from_essential_choose_solutionÚproject_to_essentialÚrelative_camera_motion)Úcompute_correspond_epilinesÚfind_fundamentalÚfundamental_from_essentialÚfundamental_from_projectionsÚ"get_closest_point_on_epipolar_lineÚget_perpendicularÚnormalize_pointsÚnormalize_transformation)Úcross_product_matrix)ÚKRt_from_projectionÚdepth_from_pointÚintrinsics_likeÚprojection_from_KRtÚprojections_from_fundamentalÚrandom_intrinsicsÚscale_intrinsics)Úgenerate_scene)Útriangulate_pointsr   r   r   r   r   r   r	   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    N)(Ú__doc__Ú_metricsr   r   r   r   Ú	essentialr   r   r   r	   r
   r   r   r   r   Úfundamentalr   r   r   r   r   r   r   r   Únumericr   Ú
projectionr   r   r   r   r   r   r   Úscener   Útriangulationr    Ú__all__© ó    Ú]C:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\kornia\geometry\epipolar\__init__.pyÚ<module>r-      sˆ  ðñ$&÷Pó ÷
÷ 
õ 
÷	÷ 	ó 	õ *÷÷ ñ õ "Ý -ð Øð à!ð ð ð ð !ð	 ð
 (ð ð ð ð ð ð !ð ð ð ð ð ð !ð ð #ð ð ð ð )ð ð ð ð  ð! ð" &ð# ð$ ð% ð& ,ð' ð( ð) ð* ð+ ð, ð- ð. ð/ ð0 #ð1 ð2 ð3 ð4 ð5 ð6 &ð7 ð8  ð9 ð: ð; ð< $ð= ð> ð? ‚r+   