
    9i
                     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           O/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/skimage/io/sift.py
_sift_readr+      sg   F (C  Nv~#&sAJJL,>,>,@#A 885!% &%-.
 !**,'!+!**,'885! 5!*-%-.
 ;;qc"DyyK"3"33bhhuo6N6NNNn566 		99X    c                     [        U SS9$ )Nr   r$   r+   r%   s    r*   r   r   T       af%%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,   