+
    ?i                     ,    R t ^RIHt  ! R R]4      tR# )aM  Read TIFF from FEI SEM microscopes.

Backend Library: internal

This format is based on :mod:`TIFF <imageio.plugins.tifffile>`, and supports the
same parameters. FEI microscopes append metadata as ASCII text at the end of the
file, which this reader correctly extracts.

Parameters
----------
discard_watermark : bool
    If True (default), discard the bottom rows of the image, which
    contain no image data, only a watermark with metadata.
watermark_height : int
    The height in pixels of the FEI watermark. The default is 70.

See Also
--------
    :mod:`imageio.plugins.tifffile`

)
TiffFormatc                   T   a  ] tR t^t o RtR t ! R R]P                  4      tRtV t	R# )FEISEMFormatz!See :mod:`imageio.plugins.feisem`c                    R # )F )selfrequests   &&T/var/www/html/photoedit/myenv/lib/python3.14/site-packages/imageio/plugins/feisem.py
_can_writeFEISEMFormat._can_write    s        c                   @   a a ] tR t^#t oRV 3R lltRR ltRtVtV ;t# )FEISEMFormat.Readerc                d   < \         \        P                  V `  V4      w  rEV'       d   VRV)  pWE3# )zGet image and metadata from given index.

FEI images usually (always?) contain a watermark at the
bottom of the image, 70 pixels high. We discard this by
default as it does not contain any information not present
in the metadata.
N)superr   Reader	_get_data)r   indexdiscard_watermarkwatermark_heightimmeta	__class__s   &&&&  r	   r   FEISEMFormat.Reader._get_data$   s9     \00$A%HHB ***+8Or   c                   \        V R4      '       d   V P                  # R/ /pRpRpV P                  P                  4       p\	        VRRR7      ;_uu_ 4       pV F  pV'       g   VP                  R4      '       g   K$  RpVP                  4       pVP                  R	4      '       d'   VP                  R	4      P                  R
4      p/ W#&   Ks  RV9   g   K|  VP                  R^R7      w  r\        \        3 F  p
 V
! V	4      p	 M	  WV,          V&   K  	  RRR4       VR,          '       g#   \        V4      ^8X  d   \        RV,          4      hW n        V#   \         d     Kn  i ; i  + '       g   i     L[; i)zRead the metadata from an FEI SEM TIFF.

This metadata is included as ASCII text at the end of the file.

The index, if provided, is ignored.

Returns
-------
metadata : dict
    Dictionary of metadata.
	_fei_metarootFutf8ignore)encodingerrorszDate=T[]=)maxsplitNz'Input file %s contains no FEI metadata.)hasattrr   r   get_local_filenameopen
startswithrstriplstripsplitintfloat
ValueErrorlen)r   r   mdcurrent_tagreading_metadatafilenamefinlinekeyvaltag_types   &&         r	   _get_meta_data"FEISEMFormat.Reader._get_meta_data1   sO    t[))~~%"B K$||668HhAASD+#w77$/3,;;=Ds++&*kk#&6&=&=c&B*,$;'+zz#z'BHC-0%L!**23-C %* -9 47{OC0)   B, f::#b'Q, !JX!UVVNI (2 !-$,!-# BAsB   $E)<*E)'*E)$E);EE)E&"E)%E&&E))E9	)r   )    TF   )N)	__name__
__module____qualname____firstlineno__r   r9   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r	   r   r   #   s     	-	 -	r   r   r   N)
r=   r>   r?   r@   __doc__r
   r   r   rA   rB   )rD   s   @r	   r   r      s$     +;"" ; ;r   r   N)rE   tifffiler   r   r   r   r	   <module>rG      s   , !A: Ar   