ó
    EñiÅ"  ã                   óp  • S SK r S SKrS SKrSSKJrJrJrJr  SSK	J
r
  SSKJr  SSKJrJr  SSKJrJr  SS	KJr  / S
QrSr\" SSS\S9S\4S j5       r\" SSS\S9S\4S j5       r\" SSS\S9\4SS.S jj5       r\" SSSS9SS j5       r\" SSSS9SS j5       r\
" SS5      \" SSSS9S 5       5       rg)é    Né   )ÚwarnÚdeprecate_funcÚdeprecate_parameterÚ
DEPRECATED)Úrequire)Úis_low_contrast)Úrgb2grayÚrgba2rgb)Úcall_pluginÚ!_hide_plugin_deprecation_warningsé   )Úfile_or_url_context)ÚimreadÚimsaveÚimshowÚshowÚimread_collectionÚimshow_collectionaQ  The plugin infrastructure in `skimage.io` and the parameter `{deprecated_name}` are deprecated since version {deprecated_version} and will be removed in {changed_version} (or later). To avoid this warning, please do not use the parameter `{deprecated_name}`. Instead, use `imageio` or other I/O packages directly. See also `{func_name}`.Úpluginz0.25z0.27)Ústart_versionÚstop_versionÚtemplateFc                 óH  • U[         L a  SnU(       a  Sn[        R                  " U[        SS9  [	        U [
        R                  5      (       a  [        U R                  5       5      n Uc7  [        U S5      (       a&  U R                  5       R                  S5      (       a  Sn[        U 5       n [        5          [        SU 4S	U0UD6nSSS5        SSS5        [        WS
5      (       d  U$ UR                  S:”  a†  UR                   S   S;  aC  UR                   S   S;   a0  ["        R$                  " USS5      n["        R$                  " USS5      nU(       a)  UR                   S   S:X  a  ['        U5      n[)        U5      nU$ ! , (       d  f       NÁ= f! , (       d  f       NÊ= f)aE  Load an image from file.

Parameters
----------
fname : str or pathlib.Path
    Image file name, e.g. ``test.jpg`` or URL.
as_gray : bool, optional
    If True, convert color images to gray-scale (64-bit floats).
    Images that are already in gray-scale format are not converted.

Other Parameters
----------------
plugin_args : DEPRECATED
    The plugin infrastructure is deprecated.

Returns
-------
img_array : ndarray
    The different color bands/channels are stored in the
    third dimension, such that a gray-image is MxN, an
    RGB-image MxNx3 and an RGBA-image MxNx4.

Na-  The plugin infrastructure in `skimage.io` is deprecated since version 0.25 and will be removed in 0.27 (or later). To avoid this warning, please do not pass additional keyword arguments for plugins (`**plugin_args`). Instead, use `imageio` or other I/O packages directly. See also `skimage.io.imread`.é   ©ÚcategoryÚ
stacklevelÚlower©z.tiffz.tifÚtifffiler   r   Úndimr   éÿÿÿÿ)r   é   éýÿÿÿéþÿÿÿr$   )r   Úwarningsr   ÚFutureWarningÚ
isinstanceÚpathlibÚPathÚstrÚresolveÚhasattrr   Úendswithr   r   r   r"   ÚshapeÚnpÚswapaxesr   r
   )ÚfnameÚas_grayr   Úplugin_argsÚmsgÚimgs         ÚK/home/mande/repo/quber/.venv/lib/python3.13/site-packages/skimage/io/_io.pyr   r       sL  € ð< ”ÒØˆÞðCð 	ô 	�Š�c¤M¸aÒ@ä�%œŸ™×&Ñ&Ü�E—M‘M“OÓ$ˆà�~œ' %¨×1Ñ1Ø�;‰;‹=×!Ñ!Ð"3×4Ñ4ØˆFä	˜UÔ	# uÔ.OÕ.QÜ˜( EÑH°&ÐH¸KÑHˆ÷ /R×	#ô �3˜×ÑØˆ
à
‡x�x�!ƒ|Ø�9‰9�R‰= Ó&¨3¯9©9°R©=¸FÓ+BÜ—+’+˜c 2 rÓ*ˆCÜ—+’+˜c 2 rÓ*ˆCæØ�y‰y˜‰|˜qÓ Ü˜s“m�Ü˜3“-ˆCà€J÷! /RÕ.Qú×	#Õ	#ús$   Â,FÂ7FÃFÆ
F	ÆFÆ
F!Tc                 óÈ   • U[         L a  SnU(       a  Sn[        R                  " U[        SS9  [	        5          [        SU U4SU0UD6sSSS5        $ ! , (       d  f       g= f)ag  
Load a collection of images.

Parameters
----------
load_pattern : str or list
    List of objects to load. These are usually filenames, but may
    vary depending on the currently active plugin. See :class:`ImageCollection`
    for the default behaviour of this parameter.
conserve_memory : bool, optional
    If True, never keep more than one in memory at a specific
    time.  Otherwise, images will be cached once they are loaded.

Returns
-------
ic : :class:`ImageCollection`
    Collection of images.

Other Parameters
----------------
plugin_args : DEPRECATED
    The plugin infrastructure is deprecated.

Na8  The plugin infrastructure in `skimage.io` is deprecated since version 0.25 and will be removed in 0.27 (or later). To avoid this warning, please do not pass additional keyword arguments for plugins (`**plugin_args`). Instead, use `imageio` or other I/O packages directly. See also `skimage.io.imread_collection`.r   r   r   r   )r   r'   r   r(   r   r   )Úload_patternÚconserve_memoryr   r5   r6   s        r8   r   r   d   si   € ðB ”ÒØˆÞðNð 	ô 	�Š�c¤M¸aÒ@Ü	*Õ	,ÜØØØñ
ð ð	
ð
 ñ
÷ 
-×	,×	,ús   ¹AÁ
A!)Úcheck_contrastc                ó^  • U[         L a  SnU(       a  Sn[        R                  " U[        SS9  [	        U [
        R                  5      (       a  [        U R                  5       5      n Uc7  [        U S5      (       a&  U R                  5       R                  S5      (       a  SnUR                  [        :X  a!  [        U  S3SS	9  UR                  S
5      S-  nU(       a  [        U5      (       a  [        U  S35        [!        5          [#        SX4SU0UD6sSSS5        $ ! , (       d  f       g= f)ai  Save an image to file.

Parameters
----------
fname : str or pathlib.Path
    Target filename.
arr : ndarray of shape (M,N) or (M,N,3) or (M,N,4)
    Image data.
check_contrast : bool, optional
    Check for low contrast and print warning (default: True).

Other Parameters
----------------
plugin_args : DEPRECATED
    The plugin infrastructure is deprecated.
Na-  The plugin infrastructure in `skimage.io` is deprecated since version 0.25 and will be removed in 0.27 (or later). To avoid this warning, please do not pass additional keyword arguments for plugins (`**plugin_args`). Instead, use `imageio` or other I/O packages directly. See also `skimage.io.imsave`.r   r   r   r    r!   z~ is a boolean image: setting True to 255 and False to 0. To silence this warning, please convert the image using img_as_ubyte.)r   Úuint8éÿ   z is a low contrast imager   r   )r   r'   r   r(   r)   r*   r+   r,   r-   r.   r   r/   ÚdtypeÚboolÚastyper	   r   r   )r3   Úarrr   r<   r5   r6   s         r8   r   r   š   s   € ð. ”ÒØˆÞðCð 	ô 	�Š�c¤M¸aÒ@ä�%œŸ™×&Ñ&Ü�E—M‘M“OÓ$ˆØ�~œ' %¨×1Ñ1Ø�;‰;‹=×!Ñ!Ð"3×4Ñ4ØˆFØ
‡y�y”DÓÜØˆgð ð ð ò		
ð �j‰j˜Ó! CÑ'ˆÞœ/¨#×.Ñ.Ü�ˆwÐ.Ð/Ô0ä	*Õ	,Ü˜8 UÑN¸ÐNÀ+ÑN÷ 
-×	,×	,ús   ÄDÄ
D,z<Please use `matplotlib`, `napari`, etc. to visualize images.)Údeprecated_versionÚremoved_versionÚhintc                 ó¨   • [        U [        5      (       a
  [        SXS9n [        5          [        SU 4SU0UD6sSSS5        $ ! , (       d  f       g= f)aU  Display an image.

Parameters
----------
arr : ndarray or str
    Image data or name of image file.
plugin : str
    Name of plugin to use.  By default, the different plugins are
    tried (starting with imageio) until a suitable candidate is found.

Other Parameters
----------------
plugin_args : keywords
    Passed to the given plugin.

r   )r   r   r   N)r)   r,   r   r   )rC   r   r5   s      r8   r   r   Ñ   sC   € ô, �#”s×ÑÜ˜( CÑ7ˆÜ	*Õ	,Ü˜8 SÑG°ÐG¸;ÑG÷ 
-×	,×	,ús   ªAÁ
Ac                 ój   • [        5          [        SU 4SU0UD6sSSS5        $ ! , (       d  f       g= f)zËDisplay a collection of images.

Parameters
----------
ic : :class:`ImageCollection`
    Collection to display.

Other Parameters
----------------
plugin_args : keywords
    Passed to the given plugin.

r   r   N©r   r   )Úicr   r5   s      r8   r   r   í   s+   € ô& 
+Õ	,ÜÐ.°ÑQ¸6ÐQÀ[ÑQ÷ 
-×	,×	,ús   ‹$¤
2Ú
matplotlibz>=3.3c                  ób   • [        5          [        S5      sSSS5        $ ! , (       d  f       g= f)aß  Display pending images.

Launch the event loop of the current GUI plugin, and display all
pending images, queued via `imshow`. This is required when using
`imshow` from non-interactive scripts.

A call to `show` will block execution of code until all windows
have been closed.

Examples
--------
>>> import skimage.io as io
>>> rng = np.random.default_rng()
>>> for i in range(4):
...     ax_im = io.imshow(rng.random((50, 50)))  # doctest: +SKIP
>>> io.show() # doctest: +SKIP

Ú	_app_showNrI   © ó    r8   r   r     s   € ô2 
+Õ	,Ü˜;Ó'÷ 
-×	,×	,ús   ‹  
.)N)r*   r'   Únumpyr1   Ú_shared.utilsr   r   r   r   Ú_shared.version_requirementsr   Úexposurer	   Úcolor.colorconvr
   r   Úio.manage_pluginsr   r   Úutilr   Ú__all__Ú_remove_plugin_param_templater   r   r   r   r   r   rN   rO   r8   Ú<module>rY      s<  ðÛ Û ã ç QÓ QÝ 2Ý &ß 0ß NÝ %ò€ð>ð ñ ØØØØ*ñ	ð  ¨
ó ;óð;ñ| ØØØØ*ñ	ð #'¨zó-
óð-
ñ` ØØØØ*ñ	ð )ð .O¸Dõ .Oóð.Oñb ØØØ	Gñó
Hóð
Hñ. ØØØ	Gñó
Róð
Rñ$ 	ˆ�wÓÙØØØ	Gññ
(óó  ñ(rO   