ó
    Eñi
  ã                   ó   • S /r SS jrg)Úslice_along_axesNc           	      óˆ  ^ • U(       d  T $ UcB  [        [        T R                  5      5      n[        U5      [        U5      :  a  [	        S5      eO#[        U5      [        U5      :w  a  [	        S5      e[        U5      [        [        U5      5      :w  a  [	        S5      e[        U 4S jU 5       5      (       d  [	        SU ST R                   S35      e[        S5      /T R                  -  n[        X5       H“  u  u  pVnUS	:  a  UT R                  U   -  nUS	:  a  UT R                  U   -  nXV:”  a  [	        S
U SU S35      eUS	:  d  UT R                  U   :”  a  [	        S
U SU ST R                   35      e[        XV5      XG'   M•     T [        U5         nU(       a  UR                  b  UR                  5       nU$ )aõ  Slice an image along given axes.

Parameters
----------
image : ndarray
    Input image.
slices : list of 2-tuple (a, b) where a < b.
    For each axis in `axes`, a corresponding 2-tuple
    ``(min_val, max_val)`` to slice with (as with Python slices,
    ``max_val`` is non-inclusive).
axes : int or tuple, optional
    Axes corresponding to the limits given in `slices`. If None,
    axes are in ascending order, up to the length of `slices`.
copy : bool, optional
    If True, ensure that the output is not a view of `image`.

Returns
-------
out : ndarray
    The region of `image` corresponding to the given slices and axes.

Examples
--------
>>> from skimage import data
>>> img = data.camera()
>>> img.shape
(512, 512)
>>> cropped_img = slice_along_axes(img, [(0, 100)])
>>> cropped_img.shape
(100, 512)
>>> cropped_img = slice_along_axes(img, [(0, 100), (0, 100)])
>>> cropped_img.shape
(100, 100)
>>> cropped_img = slice_along_axes(img, [(0, 100), (0, 75)], axes=[1, 0])
>>> cropped_img.shape
(75, 100)
Nz!More `slices` than available axesz*`axes` and `slices` must have equal lengthz`axes` must be uniquec              3   óX   >#   • U  H  oS :¬  =(       a    UTR                   :  v •  M!     g7f)é    N)Úndim)Ú.0ÚaÚimages     €Ú[/home/mande/repo/quber/.venv/lib/python3.13/site-packages/skimage/util/_slice_along_axes.pyÚ	<genexpr>Ú#slice_along_axes.<locals>.<genexpr>:   s#   øé € Ð7²$¨Q�A‰v×(˜!˜eŸj™j™.Ô(²$ùs   ƒ'*zaxes z out of range; image has only z dimensionsr   zInvalid slice (z, z'): must be ordered `(min_val, max_val)`z) for image with dimensions )ÚlistÚranger   ÚlenÚ
ValueErrorÚsetÚallÚsliceÚzipÚshapeÚtupleÚbaseÚcopy)	r	   ÚslicesÚaxesr   Ú_slicesr   ÚbÚaxÚimage_slices	   `        r
   r   r      sÃ  ø€ öP Øˆà�|Ü”E˜%Ÿ*™*Ó%Ó&ˆÜˆt‹9”s˜6“{Ó"ÜÐ@ÓAÐAð #ô 
ˆT‹”c˜&“kÓ	!ÜÐEÓFÐFä
ˆ4ƒy”Cœ˜D›	“NÓ"ÜÐ0Ó1Ð1äÔ7±$Ó7×7Ñ7ÜØ�D�6Ð7¸E¿J¹J¸<À{ÐSó
ð 	
ô
 	ˆd‹ðà�
‰
ñ€Gô ˜&Ö'‰
‰ˆ�Øˆq‹5Ø�—‘˜R‘Ñ ˆAØˆq‹5Ø�—‘˜R‘Ñ ˆAØ‹5ÜØ! !  B q cÐ)PÐQóð ð ˆq‹5�A˜Ÿ™ B™Ó'ÜØ! !  B q cÐ)EÀeÇkÁkÀ]ÐSóð ô ˜A“kˆ‹ñ (ð œ˜g›Ñ'€Kæ�× Ñ Ñ,Ø!×&Ñ&Ó(ˆàÐó    )NF)Ú__all__r   © r   r
   Ú<module>r"      s   ðØÐ
€õRr   