ó
    Eñi
  ã                   ón   • S SK rSS/rSS jrS rS r\R                  \l        \R                  \l        g)é    NÚ	load_siftÚ	load_surfc           	      ó2  • [        U [        5      (       a  [        U 5      nSnOU nSnUS:X  aj  [        [        UR                  5       R                  5       5      u  pE[        R                  " S[        4S[        4S[        4S[        4S[        U44/5      nOtS	n[	        UR                  5       5      S
-
  n[	        UR                  5       5      n[        R                  " S[        4S[        4S[        S44S[        4S[        U44/5      n[        R                  " USS9nUR                  XFR                  -  [        R                  " [        5      R                  -  :w  a  [        SU S35      eU(       a  UR                  5         UR                  U5      $ )a°  Read SIFT or SURF features from externally generated file.

This routine reads SIFT or SURF files generated by binary utilities from
http://people.cs.ubc.ca/~lowe/keypoints/ and
http://www.vision.ee.ethz.ch/~surf/.

This routine *does not* generate SIFT/SURF features from an image. These
algorithms are patent encumbered. Please use :obj:`skimage.feature.CENSURE`
instead.

Parameters
----------
filelike : string or open file
    Input file generated by the feature detectors from
    http://people.cs.ubc.ca/~lowe/keypoints/ or
    http://www.vision.ee.ethz.ch/~surf/ .
mode : {'SIFT', 'SURF'}, optional
    Kind of descriptor used to generate `filelike`.

Returns
-------
data : record array with fields
    - row: int
        row position of feature
    - column: int
        column position of feature
    - scale: float
        feature scale
    - orientation: float
        feature orientation
    - data: array
        feature values

TFÚSIFTÚrowÚcolumnÚscaleÚorientationÚdataÚSURFé   Úsecond_momenté   ÚsignÚ )ÚsepzInvalid z feature file.)Ú
isinstanceÚstrÚopenÚmapÚintÚreadlineÚsplitÚnpÚdtypeÚfloatÚfromfileÚsizeÚitemsizeÚOSErrorÚcloseÚview)ÚfilelikeÚmodeÚfÚfilelike_is_strÚnr_featuresÚfeature_lenÚdatatyper   s           ÚL/home/mande/repo/quber/.venv/lib/python3.13/site-packages/skimage/io/sift.pyÚ
_sift_readr+      sg  € ôF �(œC× Ñ Ü�‹NˆØ‰àˆØˆàˆvƒ~Ü#&¤s¨A¯J©J«L×,>Ñ,>Ó,@Ó#AÑ ˆÜ—8’8àœ�Øœ5Ð!Øœ%Ð Ø¤Ð&Øœ% Ð-Ð.ðó
‰ð ˆÜ˜!Ÿ*™*›,Ó'¨!Ñ+ˆÜ˜!Ÿ*™*›,Ó'ˆÜ—8’8àœ5Ð!Øœ�Ø ¤5¨! *Ð-Øœ�Øœ% Ð-Ð.ðó
ˆô �;Š;�q˜cÑ"€DØ‡y�y�K×"3Ñ"3Ñ3´b·h²h¼u³o×6NÑ6NÑNÓNÜ˜   nÐ5Ó6Ð6ö Ø	�‰Œ	à�9‰9�XÓÐó    c                 ó   • [        U SS9$ )Nr   ©r$   ©r+   ©r%   s    r*   r   r   T   ó   € Ü�a˜fÑ%Ð%r,   c                 ó   • [        U SS9$ )Nr   r.   r/   r0   s    r*   r   r   X   r1   r,   )r   )Únumpyr   Ú__all__r+   r   r   Ú__doc__© r,   r*   Ú<module>r7      sA   ðÛ à˜Ð
$€ôKò\&ò&ð ×&Ñ&€	Ô Ø×&Ñ&€	Õ r,   