ó
 ‰\c           @   sh   d  d g Z  d d l m Z y d d l Z Wn e k
 rK e d ƒ ‚ n Xd d „ Z d d „ Z d S(	   t   imreadt   imsavei   (   t   convertiÿÿÿÿNsf   Imread could not be foundPlease refer to http://pypi.python.org/pypi/imread/ for further instructions.c         C   s1   t  j |  ƒ } | d k	 r- t | | ƒ } n  | S(   sh   Load an image from file.

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

    N(   t   _imreadR    t   NoneR   (   t   fnamet   dtypet   im(    (    s@   lib/python2.7/site-packages/skimage/io/_plugins/imread_plugin.pyR       s    	c         C   s   t  j |  | d | ƒS(   s/  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.
    t	   formatstr(   R   R   (   R   t   arrt
   format_str(    (    s@   lib/python2.7/site-packages/skimage/io/_plugins/imread_plugin.pyR      s    (   t   __all__t
   util.dtypeR   R    R   t   ImportErrorR   R   (    (    (    s@   lib/python2.7/site-packages/skimage/io/_plugins/imread_plugin.pyt   <module>   s   