+
    åûj8G  ã                   ó¨   € ^ RI HtHtHtHtHt ^ RIt^ RIHt ^ RIH	t	 ^ RI
HtHtHtHt ^ RIHt ^ RIHt ^ RIHt  ! R	 R
]P*                  4      tR# )é    )ÚAnyÚDictÚOptionalÚTupleÚcastN)Únn)ÚKORNIA_CHECK)ÚDescriptorMatcherÚGFTTAffNetHardNetÚLocalFeatureMatcherÚLoFTR)Útransform_points)ÚRANSAC)Úwarp_perspectivec                   ó€  a a€ ] tR t^t oRtRV3R lV 3R lllt]V3R lR l4       t]V3R lR l4       t]V3R lR	 l4       t	]
P                  ! 4       V3R
 lR l4       tV3R lR lt]V3R lR l4       tV3R lR ltV3R lR ltV3R lR ltV3R lR ltV3R lR ltV3R lR ltV3R lR ltRtVtV ;t# ) ÚHomographyTrackera%  Track a planar target through video frames by matching local features and fitting a homography.

``tracker = HomographyTracker()`` builds the tracker and ``tracker.set_target(target)`` registers a grayscale
``(1, 1, H, W)`` target image. ``H, ok = tracker(frame)`` then returns the ``(3, 3)`` homography from target
pixels to the pixels of a ``(1, 1, H', W')`` frame and whether it was found. The first frame, and the next frame
after a failure, are matched from scratch with ``initial_matcher``; every other frame is first warped by the inverse
of the previous homography and matched with ``fast_matcher``.

Convention:
    - ``H`` has the direction of ``cv2.findHomography(target_points, frame_points)``.
    - Call :meth:`set_target` before the first frame; a frame without a target raises ``AttributeError``. The
      target is not a buffer, so :meth:`~torch.nn.Module.to` leaves it where it is: call :meth:`set_target` again
      after moving the tracker.
    - For a :class:`~kornia.feature.LoFTR`, a :class:`~kornia.feature.LocalFeatureMatcher` or a matcher with an
      ``extract_features`` module, :meth:`set_target` extracts the target's features once. Changes made in place to
      the target or to that matcher's weights afterwards are not noticed; call :meth:`set_target` again.
    - A failed match returns ``(H, False)`` with ``H`` uninitialized (:meth:`no_match`).
    - Every homography the tracker returns or stores as ``previous_homography``, :meth:`no_match`'s included, is
      float32 for a ``float16`` or ``bfloat16`` target and has the target's dtype otherwise, whatever the dtype of
      the frame, of the matcher's keypoints or of a ``previous_homography`` assigned from outside.
    - Keypoints narrower than that dtype are widened to it before ``ransac`` fits them. The caller's autocast
      reaches the matchers, but not the tracker's own warp, keypoint mapping and ``ransac`` fit.

Args:
    initial_matcher: image matching module for a frame without a previous homography, e.g.
        :class:`~kornia.feature.LocalFeatureMatcher` or :class:`~kornia.feature.LoFTR`. Default:
        ``LocalFeatureMatcher(GFTTAffNetHardNet(3000), DescriptorMatcher("smnn", 0.95))``.
    fast_matcher: image matching module for the next frames, matched after warping them with the previous
        homography, e.g. :class:`~kornia.feature.LocalFeatureMatcher` or :class:`~kornia.feature.LoFTR`. Default:
        ``LoFTR("outdoor")``.
    ransac: homography estimation module. Default: ``RANSAC("homography", inl_th=5.0, batch_size=4096,
        max_iter=10, max_lo_iters=10)``, looser than the ``RANSAC("homography")`` (``inl_th=2.0``) of
        :class:`~kornia.contrib.ImageStitcher`.
    minimum_inliers_num: number of RANSAC inliers, and of matches, a frame needs to count as found. RANSAC needs 4
        correspondences, so fewer than 4 matches always count as a failed match, whatever this value is.
        Default: ``30``.

See Also:
    - :class:`~kornia.contrib.ImageStitcher`: stitches a left-to-right sequence of images into one panorama, with no
      state between calls.

c          
      ó¢   <€ V ^8„  d   QhRS[ S[P                  ,          RS[ S[P                  ,          RS[ S[P                  ,          RS[RR/# )é   Úinitial_matcherÚfast_matcherÚransacÚminimum_inliers_numÚreturnN)r   r   ÚModuleÚint)ÚformatÚ__classdict__s   "€ÚZC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\kornia\tracking\planar_tracker.pyÚ__annotate__ÚHomographyTracker.__annotate__J   sX   ø€ ÷ ñ á!¡"§)¡)Õ,ðñ ™rŸy™yÕ)ðñ ™Ÿ™Õ#ð	ñ
 !ðð 
ñó    c                ó’  <€ \         SV `  4        T;'       g     \        \        R 4      \	        RR4      4      V n        T;'       g    \        R4      V n        T;'       g    \        RRR^
^
R7      V n	        W@n
        V  / V n        / V n        / V n        RV n        RV n        ^ V n        ^ V n        ^ V n        V P'                  4        R# )	i¸  Úsmnngffffffî?ÚoutdoorÚ
homographyg      @i   )Úinl_thÚ
batch_sizeÚmax_iterÚmax_lo_itersN)ÚsuperÚ__init__r   r   r
   r   r   r   r   r   r   Útarget_initial_representationÚtarget_fast_representationÚ_cache_sourceÚprevious_homographyÚ_prior_sourceÚinliers_numÚkeypoints0_numÚkeypoints1_numÚreset_tracking)Úselfr   r   r   r   Ú	__class__s   &&&&&€r   r+   ÚHomographyTracker.__init__J   sÒ   ø€ ô 	‰ÑÔØ.÷  
ð  
ÜÔ 1°$Ó 7Ô9JÈ6ÐSWÓ9XÓYð 	Ôð )×<Ð<¬E°)Ó,<ˆÔØ×oÐo¤ |¸CÈDÐ[]ÐlnÔ oˆŒØ#6Ô ñ 	Ø=?ˆÔ*Ø:<ˆÔ'ð IKˆÔØ;?ˆÔ ð KOˆÔà !ˆÔØ#$ˆÔØ#$ˆÔà×ÑÖr!   c                ó4   <€ V ^8„  d   QhRS[ P                  /# ©r   r   )ÚtorchÚdevice)r   r   s   "€r   r   r    l   s   ø€ ÷ "ñ "™Ÿ™ñ "r!   c                ó.   € V P                   P                  # )z‚Return the device used by the current target image tensor.

Returns:
    The ``torch.device`` where ``self.target`` is allocated.
)Útargetr;   ©r5   s   &r   r;   ÚHomographyTracker.devicek   s   € ð �{‰{×!Ñ!Ð!r!   c                ó4   <€ V ^8„  d   QhRS[ P                  /# r9   ©r:   Údtype)r   r   s   "€r   r   r    u   s   ø€ ÷ !ñ !‘u—{‘{ñ !r!   c                ó.   € V P                   P                  # )ztReturn the data type used by the current target image tensor.

Returns:
    The ``torch.dtype`` of ``self.target``.
)r=   rB   r>   s   &r   rB   ÚHomographyTracker.dtypet   s   € ð �{‰{× Ñ Ð r!   c                ó4   <€ V ^8„  d   QhRS[ P                  /# r9   rA   )r   r   s   "€r   r   r    ~   s   ø€ ÷ >ñ >¡5§;¡;ñ >r!   c                ó`   € \         P                  ! V P                  \         P                  4      # ©N)r:   Úpromote_typesrB   Úfloat32r>   s   &r   Ú_homography_dtypeÚ#HomographyTracker._homography_dtype}   s   € ô ×"Ò" 4§:¡:¬u¯}©}Ó=Ð=r!   c                ó8   <€ V ^8„  d   QhRS[ P                  RR/# )r   r=   r   N)r:   ÚTensor)r   r   s   "€r   r   r    „   s#   ø€ ÷ nñ n¡§¡ð n°$ñ nr!   c                óü   € Wn         V P                  4        V P                  V P                  V4      V n        V P                  V P
                  V4      V n        RV P                  V3RV P
                  V3/V n        R# )aß  Register a new target image, cache its features and start a new track.

The target's features are extracted once here and reused for every frame, for three kinds of matcher:

- :class:`~kornia.feature.LoFTR`: its :meth:`~kornia.feature.LoFTR.extract_features` output is passed as
  ``features0``, in place of ``image0``.
- :class:`~kornia.feature.LocalFeatureMatcher`: the ``lafs``, ``responses`` and ``descriptors`` of its
  ``extract_features`` method are passed as ``lafs0``, ``responses0`` and ``descriptors0``, next to ``image0``.
- Any other matcher whose ``extract_features`` attribute is a :class:`torch.nn.Module`: every entry of the dict
  it returns is passed with a ``0`` suffix (``desc`` as ``desc0``), next to ``image0``.

Other matchers get no cached representation and receive ``image0`` and ``image1`` only. A matcher replaced after
this call, or a ``target`` reassigned directly, gets the target's features extracted again on its next use.
Setting a target starts a new track: the previous homography maps the old target's coordinates, so it is
cleared. A ``target`` reassigned directly starts a new track too, on the next :meth:`forward` or
:meth:`track_next_frame`.

Args:
    target: grayscale target image ``(1, 1, H, W)``.

ÚinitialÚfastN)r=   r4   Ú_extract_targetr   r,   r   r-   r.   )r5   r=   s   &&r   Ú
set_targetÚHomographyTracker.set_targetƒ   sv   € ð. ŒØ×ÑÔØ-1×-AÑ-AÀ$×BVÑBVÐX^Ó-_ˆÔ*Ø*.×*>Ñ*>¸t×?PÑ?PÐRXÓ*YˆÔ'Ø'¨$×*>Ñ*>ÀÐ)GÈÐRV×RcÑRcÐekÐQlÐmˆÖr!   c                ó<   <€ V ^8„  d   QhRS[ RS[S[S[3,          /# )r   rO   r   )Úboolr   Ústrr   )r   r   s   "€r   r   r        s'   ø€ ÷ bñ b©dð b±t¹CÁ¸Hµ~ñ br!   c                ó*  € V'       d   R MRpV'       d   V P                   MV P                  pV P                  P                  V4      pVe—   V^ ,          VJg   V^,          V P                  Jds   \
        P                  ! 4       ;_uu_ 4        V P                  W0P                  4      pRRR4       V'       d	   XV n        MXV n	        W0P                  3V P                  V&   V'       d   V P                  # V P                  #   + '       g   i     La; i)rO   rP   N)
r   r   r.   Úgetr=   r:   Úno_gradrQ   r,   r-   )r5   rO   ÚkeyÚmatcherÚsourceÚrepresentations   &&    r   Ú_target_representationÚ(HomographyTracker._target_representation    sÊ   € ÷ #‰i¨ˆß*1�$×&Ò&°t×7HÑ7HˆØ×#Ñ#×'Ñ'¨Ó,ˆØÒ 6¨!¥9°GÓ#;¸vÀa½yÐPT×P[ÑP[Ó?[Ü—’—•Ø!%×!5Ñ!5°g¿{¹{Ó!K�÷ !çØ5C�Õ2à2@�Ô/Ø'.·±Ð&<ˆD×Ñ˜sÑ#ß5<ˆt×1Ñ1ÐaÀ$×BaÑBaÐa÷ !—ús   ÂDÄD	c                ój   <€ V ^8„  d   QhRS[ P                  RS[P                  RS[S[S[3,          /# )r   r[   r=   r   )r   r   r:   rM   r   rV   r   )r   r   s   "€r   r   r    ²   s2   ø€ ÷ ñ ¡§¡ð ±E·L±Lð ÁTÉ#ÉsÈ(Å^ñ r!   c                ó  € \        V \        4      '       d   R V P                  V4      /# \        V \        4      '       d   V P                  V4      # \	        V RR4      p\        V\
        P                  4      '       d	   V! V4      # / # )ÚfeaturesÚextract_featuresN)Ú
isinstancer   rc   r   Úgetattrr   r   )r[   r=   rc   s   && r   rQ   Ú!HomographyTracker._extract_target±   sv   € ä�gœu×%Ò%Ø × 8Ñ 8¸Ó @ÐAÐAÜ�gÔ2×3Ò3Ø×+Ñ+¨FÓ3Ð3Ü" 7Ð,>ÀÓEÐÜÐ&¬¯	©	×2Ò2Ù# FÓ+Ð+Øˆ	r!   c          
      ó†   <€ V ^8„  d   QhRS[ P                  RS[S[S[3,          RS[P                  RS[S[S[3,          /# )r   r[   r]   Úframer   )r   r   r   rV   r   r:   rM   )r   r   s   "€r   r   r    ¼   sI   ø€ ÷ ñ ¡b§i¡ið ÁÁcÉ3ÀhÅð ÑX]×XdÑXdð ÑimÑnqÑsvÐnvÕiwñ r!   c                ó¦   € R V P                   RV/pVP                  4        F  w  rVWdV R2&   K  	  \        V\        4      '       d   RV9   d   VR  V# )Úimage0Úimage1Ú0Ú	features0)r=   Úitemsrd   r   )r5   r[   r]   rh   ÚdataÚkÚvs   &&&&   r   Ú_matcher_inputÚ HomographyTracker._matcher_input¼   sV   € Ø (¨$¯+©+°xÀÐGˆØ"×(Ñ(Ö*‰DˆAØ�A�3�a�‹Mñ +ä�gœu×%Ò%¨+¸Ô*=Ø�X�Øˆr!   c                ó   <€ V ^8„  d   QhRR/# ©r   r   N© )r   r   s   "€r   r   r    Ä   s   ø€ ÷ "ñ " ñ "r!   c                ó"   € RV n         RV n        R# )zTReset temporal tracking state from previously processed frames.

Returns:
    None.
N)r/   r0   r>   s   &r   r4   Ú HomographyTracker.reset_trackingÄ   s   € ð $(ˆÔ Ø!ˆÖr!   c                ó   <€ V ^8„  d   QhRR/# ru   rv   )r   r   s   "€r   r   r    Í   s   ø€ ÷ "ñ "¨tñ "r!   c                ó®   € V P                   pVeE   V^ ,          V P                  J d,   V^,          V P                  Jd   V P                  4        R # R # R # R # rG   )r0   r/   r=   r4   )r5   r\   s   & r   Ú_drop_prior_of_another_targetÚ/HomographyTracker._drop_prior_of_another_targetÍ   sR   € ð ×#Ñ#ˆØÒ &¨¥)¨t×/GÑ/GÓ"GÈFÐSTÍIÐ]a×]hÑ]hÓLhØ×ÑÖ!ñ MiÑ"GÑr!   c                óJ   <€ V ^8„  d   QhRS[ S[P                  S[3,          /# r9   )r   r:   rM   rU   )r   r   s   "€r   r   r    Ô   s%   ø€ ÷ Zñ Z™%¡§¡©dÐ 2Õ3ñ Zr!   c                óŒ   € ^ V n         ^ V n        ^ V n        \        P                  ! ^^V P
                  V P                  R7      R3# )a3  Return a failed-match response and clear current match statistics.

Returns:
    A tuple ``(H, is_valid)`` where ``H`` is an uninitialised ``3 x 3`` tensor on the tracker device, in
    float32 for a ``float16`` or ``bfloat16`` target and in the target's dtype otherwise, and ``is_valid`` is
    ``False``.
)r;   rB   F)r1   r2   r3   r:   Úemptyr;   rJ   r>   s   &r   Úno_matchÚHomographyTracker.no_matchÔ   sA   € ð ˆÔØˆÔØˆÔÜ�{Š{˜1˜a¨¯©¸4×;QÑ;QÔRÐTYÐYÐYr!   c                ód   <€ V ^8„  d   QhRS[ P                  RS[S[ P                  S[3,          /# ©r   Úxr   ©r:   rM   r   rU   )r   r   s   "€r   r   r    á   s-   ø€ ÷ )ñ )™uŸ|™|ð )±±e·l±lÁDÐ6HÕ0Iñ )r!   c                ó"  € V P                  V P                  V P                   V P                  R4      V4      4      pVR,          VR,          ^ 8H  ,          pVR,          VR,          ^ 8H  ,          p\        V4      V n        \        V4      V n        V P                  \        V P                  ^4      8  d   V P                  4       # \        P                  ! VP                  V P                  4      p\        P                  ! VP                  P                  RR7      ;_uu_ 4        V P!                  VP#                  V4      VP#                  V4      4      w  rgRRR4       XP%                  4       P'                  4       V n        V P(                  V P                  8  d   V P                  4       # XP#                  V P                  4      pVP+                  4       V n        V P,                  V P.                  3V n        VR3#   + '       g   i     L¯; i)aÎ  Match frame ``x`` against the target from scratch with ``initial_matcher``.

On success it stores the homography as ``previous_homography`` and sets ``keypoints0_num``, ``keypoints1_num``
and ``inliers_num``; a failure sets all three to 0 through :meth:`no_match` and leaves
``previous_homography`` as it was. After a failed call made while a previous homography exists, call
:meth:`reset_tracking` to have the next :meth:`forward` match from scratch.

Args:
    x: frame ``(1, 1, H, W)``.

Returns:
    A tuple ``(H, is_valid)``: the ``(3, 3)`` homography from target pixels to frame pixels, and whether at
    least ``minimum_inliers_num`` inliers were found among at least ``max(minimum_inliers_num, 4)`` matches.

TÚ
keypoints0Úbatch_indexesÚ
keypoints1F©ÚenabledN)r   rr   r^   Úlenr2   r3   Úmaxr   r€   r:   rH   rB   rJ   Úautocastr;   Útyper   ÚtoÚsumÚitemr1   Úcloner/   r=   r0   )r5   r„   Ú
match_dictr‡   r‰   Úkeypoints_dtypeÚHÚinlierss   &&      r   Úmatch_initialÚHomographyTracker.match_initialá   s‘  € ð  /3×.BÑ.BØ×Ñ × 4Ñ 4°d×6QÑ6QÐRVÓ6WÐYZÓ[ó/
ˆ
ð   Õ-¨j¸Õ.IÈQÑ.NÕOˆ
Ø Õ-¨j¸Õ.IÈQÑ.NÕOˆ
ä! *›oˆÔÜ! *›oˆÔà×Ñ¤ T×%=Ñ%=¸qÓ!AÔAØ—=‘=“?Ð"ô  ×-Ò-¨j×.>Ñ.>À×@VÑ@VÓWˆÜ�^Š^˜AŸH™HŸM™M°5×9Ö9ØŸ™ Z§]¡]°?Ó%CÀZÇ]Á]ÐSbÓEcÓd‰JˆA÷ :à"Ÿ;™;›=×-Ñ-Ó/ˆÔà×Ñ˜d×6Ñ6Ô6Ø—=‘=“?Ð"Ø�D‰D�×'Ñ'Ó(ˆØ#$§7¡7£9ˆÔ Ø"×6Ñ6¸¿¹ÐDˆÔà�$ˆwˆ÷ :×9ús   Ä$3G>Ç>H	c                ód   <€ V ^8„  d   QhRS[ P                  RS[S[ P                  S[3,          /# rƒ   r…   )r   r   s   "€r   r   r      s1   ø€ ÷ Añ A¡%§,¡,ð A±5¹¿¹ÁtÐ9KÕ3Lñ Ar!   c                óÜ  € V P                  4        \        V P                  RJR4       V P                  p\	        \
        P                  V P                  4      P                  VRR7      R,          pVR,          R,          VR&   VR;;,          R,          uu&   V P                  P                  R,          w  rE\
        P                  ! VP                  V4      p\
        P                  ! VP                  P                  RR	7      ;_uu_ 4        \
        P                  ! V4      p\!        VP                  V4      WtV34      P                  VP                  4      pRRR4       V P#                  V P%                  V P"                  V P'                  R4      X4      4      p	V	R
,          V	R,          ^ 8H  ,          p
V	R,          V	R,          ^ 8H  ,          p\
        P                  ! V
P                  V4      p\
        P                  ! VP                  P                  RR	7      ;_uu_ 4        \)        W;P                  V4      4      pRRR4       \+        V
4      V n        \+        V4      V n        V P,                  \1        V P2                  ^4      8  d!   V P5                  4        V P7                  4       # \
        P                  ! VP                  P                  RR	7      ;_uu_ 4        V P9                  V
P                  V4      V4      w  rÞRRR4       XP;                  4       P=                  4       V n        V P>                  V P2                  8  d!   V P5                  4        V P7                  4       # XP                  V4      pVPA                  4       V n        V P                  V P                  3V n!        VR3#   + '       g   i     ELb; i  + '       g   i     EL�; i  + '       g   i     LÝ; i)aè  Track the target in frame ``x`` from the previous homography with ``fast_matcher``.

The frame is first prewarped by the inverse of the previous homography, widened by a margin,
then matched with ``fast_matcher`` and verified using RANSAC. The inverse is computed in the homography dtype
(float32 for a ``float16`` or ``bfloat16`` target), the frame is warped in that dtype or in its own if that is
wider, and ``fast_matcher`` gets the warped frame in the dtype of ``x``. Its keypoints are mapped back and
fitted in the homography dtype or in their own if that is wider. Autocast is off for the warp, the mapping and
the fit. A failure drops the previous homography. Without a previous homography it raises ``BaseError``.

Args:
    x: frame ``(1, 1, H, W)``.

Returns:
    A tuple ``(H, is_valid)``: the updated ``(3, 3)`` homography from target pixels to frame pixels, and whether
    at least ``minimum_inliers_num`` inliers were found among at least ``max(minimum_inliers_num, 4)``
    matches.

NzVtrack_next_frame needs a previous homography; call forward() or match_initial() first.T)Úcopygš™™™™™é?g      $@:r   NNFrŠ   r‡   rˆ   r‰   )ºNNNºr   r   Nrž   )r�   rž   r   )"r{   r	   r/   rJ   r   r:   rM   r�   r=   ÚshaperH   rB   rŽ   r;   r�   Úinverser   r   rr   r^   r   rŒ   r2   r3   r�   r   r4   r€   r   r‘   r’   r1   r“   r0   )r5   r„   Úhomography_dtypeÚHwarpÚhÚwÚ
warp_dtypeÚHinvÚframe_warpedr”   r‡   r‰   r•   r–   r—   s   &&             r   Útrack_next_frameÚ"HomographyTracker.track_next_frame  sç  € ð& 	×*Ñ*Ô,ÜØ×$Ñ$¨DÐ0Ødô	
ð  ×1Ñ1ÐÜ”U—\‘\ 4×#;Ñ#;Ó<×?Ñ?Ð@PÐW[Ð?Ó\Ð]aÕbˆà" ;Õ/°#Õ5ˆˆkÑØˆi×˜DÕ ÓØ�{‰{× Ñ  Õ$‰ˆô ×(Ò(¨¯©Ð2BÓCˆ
Ü�^Š^˜AŸH™HŸM™M°5×9Ö9Ü—=’= Ó'ˆDÜ+¨A¯D©D°Ó,<¸dÈÀFÓK×NÑNÈqÏwÉwÓWˆL÷ :ð ×&Ñ&Ø×Ñ × 1Ñ 1°4×3NÑ3NÈuÓ3UÐWcÓdó
ˆ
ð   Õ-¨j¸Õ.IÈQÑ.NÕOˆ
Ø Õ-¨j¸Õ.IÈQÑ.NÕOˆ
ä×-Ò-¨j×.>Ñ.>Ð@PÓQˆÜ�^Š^˜AŸH™HŸM™M°5×9Ö9Ü)¨%·±¸Ó1OÓPˆJ÷ :ô " *›oˆÔÜ! *›oˆÔà×Ñ¤ T×%=Ñ%=¸qÓ!AÔAØ×ÑÔ!Ø—=‘=“?Ð"ä�^Š^˜AŸH™HŸM™M°5×9Ö9ØŸ™ Z§]¡]°?Ó%CÀZÓP‰JˆA÷ :à"Ÿ;™;›=×-Ñ-Ó/ˆÔà×Ñ˜d×6Ñ6Ô6Ø×ÑÔ!Ø—=‘=“?Ð"à�D‰DÐ!Ó"ˆØ#$§7¡7£9ˆÔ Ø"×6Ñ6¸¿¹ÐDˆÔØ�$ˆwˆ÷? :×9Ð9ú÷ :×9Ð9ú÷ :×9ús%   ÄAN3È&OË"$OÎ3O	ÏO	ÏO+	c                ód   <€ V ^8„  d   QhRS[ P                  RS[S[ P                  S[3,          /# rƒ   r…   )r   r   s   "€r   r   r    O  s-   ø€ ÷ %ñ %™Ÿ™ð %©%±·±¹dÐ0BÕ*Cñ %r!   c                ó‚   € V P                  4        V P                  e   V P                  V4      # V P                  V4      # )a  Run one tracking step on frame ``x``: track from the previous homography, or match from scratch.

Args:
    x: frame ``(1, 1, H, W)``.

Returns:
    A tuple ``(H, is_valid)`` from :meth:`track_next_frame` when a previous homography exists, otherwise from
    :meth:`match_initial`.

)r{   r/   r¨   r˜   )r5   r„   s   &&r   ÚforwardÚHomographyTracker.forwardO  s>   € ð 	×*Ñ*Ô,Ø×#Ñ#Ò/Ø×(Ñ(¨Ó+Ð+Ø×!Ñ! !Ó$Ð$r!   )r.   r0   r   r   r1   r2   r3   r   r/   r   r=   r-   r,   )NNNé   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r+   Úpropertyr;   rB   rJ   r:   rY   rR   r^   ÚstaticmethodrQ   rr   r4   r{   r€   r˜   r¨   r¬   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r6   r   s   @@r   r   r      sß   ù‡ € ñ)÷Võ ðB ÷"ó ð"ð ÷!ó ð!ð ÷>ó ð>ð
 ‡]‚]ƒ_÷nó ðn÷8bð bð" ÷ó ð÷ð ÷"ð "÷"ð "÷Zð Z÷)ð )÷VAð A÷F%÷ %ð %r!   r   )Útypingr   r   r   r   r   r:   r   Úkornia.core.checkr	   Úkornia.featurer
   r   r   r   Úkornia.geometry.linalgr   Úkornia.geometry.ransacr   Úkornia.geometry.transformr   r   r   rv   r!   r   Ú<module>r¿      s7   ð÷$ 4Õ 3ã Ý å *ß [Ó [Ý 3Ý )Ý 6ô%˜Ÿ	™	ö %r!   