
    1-Ph                     ^    d dgZ ddlmZ 	 ddlZn# e$ r  ed          w xY wd	dZd	dZdS )
imreadimsave   )_convert    NzfImread could not be foundPlease refer to http://pypi.python.org/pypi/imread/ for further instructions.c                 R    t          j        |           }|t          ||          }|S )zhLoad an image from file.

    Parameters
    ----------
    fname : str
        Name of input file

    )_imreadr   r   )fnamedtypeims      a/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/skimage/io/_plugins/imread_plugin.pyr   r      s-     
		Bb%  I    c                 0    t          j        | ||          S )a0  Save an image to disk.

    Parameters
    ----------
    fname : str
        Name of destination file.
    arr : ndarray of uint8 or uint16
        Array (image) to save.
    format_str : str,optional
        Format to save as.

    Notes
    -----
    Currently, only 8-bit precision is supported.
    )	formatstr)r   r   )r	   arr
format_strs      r   r   r      s      >%
;;;;r   )N)__all__
util.dtyper   r   r   ImportErrorr    r   r   <module>r      s   X
 " " " " " "   
+	$     < < < < < <s    "