ó
    Eñi"  ã                   ó   • S SK rS/rS rg)é    NÚlabel_pointsc           	      óÈ  • U R                   S   [        U5      :w  a  [        S5      e[        R                  " U S:  5      (       a  [        S5      e[        [        R                  " [        R                  " U 5      R                  [        SS95      5      n[        R                  " U[        R                  S9n[        R                  " SU R                   S   S-   5      X2'   U$ )a‰  Assign unique integer labels to coordinates on an image mask

Parameters
----------
coords : ndarray
    An array of N coordinates with dimension D
output_shape : tuple
    The shape of the mask on which `coords` are labelled

Returns
-------
labels: ndarray
    A mask of zeroes containing unique integer labels at the `coords`

Examples
--------
>>> import numpy as np
>>> from skimage.util._label import label_points
>>> coords = np.array([[0, 1], [2, 2]])
>>> output_shape = (5, 5)
>>> mask = label_points(coords, output_shape)
>>> mask
array([[0, 1, 0, 0, 0],
       [0, 0, 0, 0, 0],
       [0, 0, 2, 0, 0],
       [0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0]], dtype=uint64)

Notes
-----
- The labels are assigned to coordinates that are converted to
  integer and considered to start from 0.
- Coordinates that are out of range of the mask raise an IndexError.
- Negative coordinates raise a ValueError
é   z6Dimensionality of points should match the output shaper   z/Coordinates should be positive and start from 0F)Úcopy)Údtype)ÚshapeÚlenÚ
ValueErrorÚnpÚanyÚtupleÚ	transposeÚroundÚastypeÚintÚzerosÚuint64Úarange)ÚcoordsÚoutput_shapeÚ
np_indicesÚlabelss       ÚP/home/mande/repo/quber/.venv/lib/python3.13/site-packages/skimage/util/_label.pyr   r      sª   € ðH ‡|�|�A�œ#˜lÓ+Ó+ÜÐTÓUÐUä	‡v‚vˆf�q‰j×ÑÜÐJÓKÐKä”r—|’|¤B§H¢H¨VÓ$4×$;Ñ$;¼CÀeÐ$;Ð$LÓMÓN€JÜ�XŠX�l¬"¯)©)Ñ4€FÜŸš 1 f§l¡l°1¡o¸Ñ&9Ó:€FÑØ€Mó    )Únumpyr   Ú__all__r   © r   r   Ú<module>r      s   ðÛ àÐ
€ó-r   