Ë
    îì�i  ã                   ó0   — d dl mZ d dl mZ ddgZd„ Zd„ Zy)é    )Úimread)Úimwriter   Úimsavec                 óŽ   — |j                   d   dv rd|vrd|d<   d}n|j                   d   dv }|r	d|vrd|d<   t        | |fi |¤ŽS )	aš  Load a tiff image to file.

    Parameters
    ----------
    fname : str or file
        File name or file-like object.
    arr : ndarray
        The array to write.
    kwargs : keyword pairs, optional
        Additional keyword arguments to pass through (see ``tifffile``'s
        ``imwrite`` function).

    Notes
    -----
    Provided by the tifffile library [1]_, and supports many
    advanced image types including multi-page and floating-point.

    This implementation will set ``photometric='RGB'`` when writing if the first
    or last axis of `arr` has length 3 or 4. To override this, explicitly
    pass the ``photometric`` kwarg.

    This implementation will set ``planarconfig='SEPARATE'`` when writing if the
    first axis of arr has length 3 or 4. To override this, explicitly
    specify the ``planarconfig`` kwarg.

    References
    ----------
    .. [1] https://pypi.org/project/tifffile/

    r   )é   é   ÚplanarconfigÚSEPARATETéÿÿÿÿÚphotometricÚRGB)ÚshapeÚtifffile_imwrite)ÚfnameÚarrÚkwargsÚrgbs       úˆ/var/www/ITT-ServiceAPI-Services/ITT-Document-Scan/mrzscanner/mrzenv/lib/python3.12/site-packages/skimage/io/_plugins/tifffile_plugin.pyr   r      sc   € ð> ‡y�y��|�vÑØ Ñ'Ø%/ˆF�>Ñ"Ø‰à�i‰i˜‰m˜vÐ%ˆÙ
ˆ} FÑ*Ø %ˆˆ}Ñä˜E 3Ñ1¨&Ñ1Ð1ó    c                 óJ   — d|v r|j                  d«      |d<   t        | fi |¤ŽS )aí  Load a tiff image from file.

    Parameters
    ----------
    fname : str or file
        File name or file-like-object.
    kwargs : keyword pairs, optional
        Additional keyword arguments to pass through (see ``tifffile``'s
        ``imread`` function).

    Notes
    -----
    Provided by the tifffile library [1]_, and supports many
    advanced image types including multi-page and floating point.

    References
    ----------
    .. [1] https://pypi.org/project/tifffile/

    Úimg_numÚkey)ÚpopÚtifffile_imread)r   r   s     r   r   r   2   s.   € ð* �FÑØŸ
™
 9Ó-ˆˆu‰ä˜5Ñ+ FÑ+Ð+r   N)Útifffiler   r   r   r   Ú__all__r   © r   r   ú<module>r      s    ðÝ .Ý 0à�XÐ
€ò(2óV,r   