ó
 ‰\c           @   s&   d  d l  m Z m Z d d „ Z d S(   i   (   t   TiffFilet   imsavec         K   sW   d | k r" | j  d ƒ | d <n  t |  d ƒ   } t | ƒ } | j |   SWd QXd S(   sz  Load a tiff image from file.

    Parameters
    ----------
    fname : str or file
       File name or file-like-object.
    dtype : numpy dtype object or string specifier
       Specifies data type of array elements (Not currently used).
    kwargs : keyword pairs, optional
        Additional keyword arguments to pass through (see ``tifffile``'s
        ``imread`` function).

    Notes
    -----
    Provided by Christophe Golhke's tifffile.py [1]_, and supports many
    advanced image types including multi-page and floating point.

    References
    ----------
    .. [1] http://www.lfd.uci.edu/~gohlke/code/tifffile.py

    t   img_numt   keyt   rbN(   t   popt   openR    t   asarray(   t   fnamet   dtypet   kwargst   ft   tif(    (    sB   lib/python2.7/site-packages/skimage/io/_plugins/tifffile_plugin.pyt   imread   s
    N(   t   external.tifffileR    R   t   NoneR   (    (    (    sB   lib/python2.7/site-packages/skimage/io/_plugins/tifffile_plugin.pyt   <module>   s   