__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

"%vg���H�SSKJr SSKrSSKJr SSKJr "SS5r\rg)�)�annotationsN)�cached_property�)�Imagec���\rSrSrSSSjjr\SSj5r\SSj5r\SSj5r\SSj5r	\SSj5r
\SS	j5r\SS
j5r\SSj5r
\SSj5rS
rg)�Stat�Nc� �[U[R5(aURU5UlO)[U[5(aXlO
Sn[U5e[	[
[UR5S-55Ulg)a�
Calculate statistics for the given image. If a mask is included,
only the regions covered by that mask are included in the
statistics. You can also pass in a previously calculated histogram.

:param image: A PIL image, or a precalculated histogram.

    .. note::

        For a PIL image, calculations rely on the
        :py:meth:`~PIL.Image.Image.histogram` method. The pixel counts are
        grouped into 256 bins, even if the image has more than 8 bits per
        channel. So ``I`` and ``F`` mode images have a maximum ``mean``,
        ``median`` and ``rms`` of 255, and cannot have an ``extrema`` maximum
        of more than 255.

:param mask: An optional mask.
z$first argument must be image or list�N)	�
isinstancer�	histogram�h�list�	TypeError�range�len�bands)�self�
image_or_list�mask�msgs    �//usr/lib/python3/dist-packages/PIL/ImageStat.py�__init__�
Stat.__init__ sf��*�m�U�[�[�1�1�"�,�,�T�2�D�F�
�
�t�
,�
,�"�F�8�C��C�.� ��%��D�F�F��s� 2�3�4��
�c��SSjn[S[UR5S5Vs/sHo!"URUS5PM sn$s snf)a%
Min/max values for each band in the image.

.. note::
    This relies on the :py:meth:`~PIL.Image.Image.histogram` method, and
    simply returns the low and high bins used. This is correct for
    images with 8 bits per channel, but fails for other modes such as
    ``I`` or ``F``. Instead, use :py:meth:`~PIL.Image.Image.getextrema` to
    return per-band extrema for the image. This is more correct and
    efficient because, for non-8-bit modes, the histogram method uses
    :py:meth:`~PIL.Image.Image.getextrema` to determine the bins used.
c��Sup[S5HnX(dMUn O [SSS5HnX(dMUn X4$ X4$)N)�rrr���)r)r
�res_min�res_max�is    r�minmax�Stat.extrema.<locals>.minmaxMs_��%��G��3�Z���<�<��G�� ��3��B�'���<�<��G���#�#�	(��#�#rrrN)r
�	list[int]�returnztuple[int, int])rrr)rr#r"s   r�extrema�Stat.extrema>sC��
	$�-2�!�S����[�#�,F�G�,F�q��t�v�v�a�b�z�"�,F�G�G��Gs�A	c	��[S[UR5S5Vs/sHn[URXS-5PM sn$s snf)z2Total number of pixels for each band in the image.rr)rrr�sum�rr"s  r�count�
Stat.count[sA��38��3�t�v�v�;��2L�M�2L�Q��D�F�F�1�3�w�'�(�2L�M�M��Ms�$A
c���/n[S[UR5S5H>nSn[S5HnX4URX$---
nM URU5 M@ U$)z-Sum of all pixels for each band in the image.rr�)rrr�append)r�vr"�	layer_sum�js     rr*�Stat.sum`sa��
���q�#�d�f�f�+�s�+�A��I��3�Z���������.�.�	� �
�H�H�Y��	,�
�rc	���/n[S[UR5S5HJnSn[S5H%nX4S-[URX$-5--
nM' UR	U5 ML U$)z5Squared sum of all pixels for each band in the image.rrr/�)rrr�floatr0)rr1r"�sum2r3s     rr8�	Stat.sum2lsi��
���q�#�d�f�f�+�s�+�A��D��3�Z���A���t�v�v�a�e�}�!5�5�5�� �
�H�H�T�N�	,�
�rc�~�URVs/sH!oRUURU-PM# sn$s snf)zAAverage (arithmetic mean) pixel level for each band in the image.)rr*r,r+s  r�mean�	Stat.meanxs3��6:�Z�Z�@�Z������d�j�j��m�+�Z�@�@��@s�(:c���/nURHYnSnURUS-nUS-n[S5HnX0RXV--nX4:�dM O UR	W5 M[ U$)z.Median pixel level for each band in the image.rr6r)rr,rrr0)rr1r"�s�half�br3s       r�median�Stat.median}ss��
�����A��A��:�:�a�=�A�%�D��C��A��3�Z�����q�u�
�%���8�� �
�H�H�Q�K���rc��URVs/sH6n[R"URUURU-5PM8 sn$s snf)z2RMS (root-mean-square) for each band in the image.)r�math�sqrtr8r,r+s  r�rms�Stat.rms�s@��BF���L��A��	�	�$�)�)�A�,����A��6�7��L�L��Ls�=Ac���URVs/sHEnURUURUS-URU--
URU-PMG sn$s snf)z$Variance for each band in the image.g@)rr8r*r,r+s  r�var�Stat.var�sa��
�Z�Z�
����Y�Y�q�\�T�X�X�a�[�C�/�4�:�:�a�=�@�
@�D�J�J�q�M�Q��
�	
��
s�AAc��URVs/sH&n[R"URU5PM( sn$s snf)z.Standard deviation for each band in the image.)rrDrErIr+s  r�stddev�Stat.stddev�s1��15�
�
�;�
�1��	�	�$�(�(�1�+�&�
�;�;��;s�-?)rr)N)rzImage.Image | list[int]rzImage.Image | Noner&�None)r&zlist[tuple[int, int]])r&r%)r&zlist[float])�__name__�
__module__�__qualname__�__firstlineno__rrr'r,r*r8r;rArFrIrL�__static_attributes__�rrrrs���QU�5�4�5�<N�5�	
�5�<�H��H�8�N��N��	��	��	��	��A��A��
��
��M��M��
��
��<��<rr)	�
__future__rrD�	functoolsr�rr�GlobalrTrr�<module>rYs'��.#��%��~<�~<�B
�r

Filemanager

Name Type Size Permission Actions
BdfFontFile.cpython-313.pyc File 4.28 KB 0644
BlpImagePlugin.cpython-313.pyc File 23.93 KB 0644
BmpImagePlugin.cpython-313.pyc File 17.97 KB 0644
BufrStubImagePlugin.cpython-313.pyc File 2.68 KB 0644
ContainerIO.cpython-313.pyc File 6.72 KB 0644
CurImagePlugin.cpython-313.pyc File 2.37 KB 0644
DcxImagePlugin.cpython-313.pyc File 2.73 KB 0644
DdsImagePlugin.cpython-313.pyc File 22.58 KB 0644
EpsImagePlugin.cpython-313.pyc File 15.76 KB 0644
ExifTags.cpython-313.pyc File 11.43 KB 0644
FitsImagePlugin.cpython-313.pyc File 6.06 KB 0644
FliImagePlugin.cpython-313.pyc File 6.76 KB 0644
FontFile.cpython-313.pyc File 4.45 KB 0644
FpxImagePlugin.cpython-313.pyc File 7.66 KB 0644
FtexImagePlugin.cpython-313.pyc File 5.25 KB 0644
GbrImagePlugin.cpython-313.pyc File 3.68 KB 0644
GdImageFile.cpython-313.pyc File 3.35 KB 0644
GifImagePlugin.cpython-313.pyc File 44.88 KB 0644
GimpGradientFile.cpython-313.pyc File 5.35 KB 0644
GimpPaletteFile.cpython-313.pyc File 2.12 KB 0644
GribStubImagePlugin.cpython-313.pyc File 2.68 KB 0644
Hdf5StubImagePlugin.cpython-313.pyc File 2.65 KB 0644
IcnsImagePlugin.cpython-313.pyc File 17 KB 0644
IcoImagePlugin.cpython-313.pyc File 14.92 KB 0644
ImImagePlugin.cpython-313.pyc File 12.76 KB 0644
Image.cpython-313.pyc File 165.73 KB 0644
ImageChops.cpython-313.pyc File 10.63 KB 0644
ImageCms.cpython-313.pyc File 42.28 KB 0644
ImageColor.cpython-313.pyc File 12.22 KB 0644
ImageDraw.cpython-313.pyc File 43.5 KB 0644
ImageDraw2.cpython-313.pyc File 9.43 KB 0644
ImageEnhance.cpython-313.pyc File 5.28 KB 0644
ImageFile.cpython-313.pyc File 30.8 KB 0644
ImageFilter.cpython-313.pyc File 22.79 KB 0644
ImageFont.cpython-313.pyc File 65.84 KB 0644
ImageGrab.cpython-313.pyc File 6.56 KB 0644
ImageMath.cpython-313.pyc File 15.95 KB 0644
ImageMode.cpython-313.pyc File 2.75 KB 0644
ImageMorph.cpython-313.pyc File 11.03 KB 0644
ImageOps.cpython-313.pyc File 28.21 KB 0644
ImagePalette.cpython-313.pyc File 12.04 KB 0644
ImagePath.cpython-313.pyc File 306 B 0644
ImageQt.cpython-313.pyc File 8.46 KB 0644
ImageSequence.cpython-313.pyc File 3.33 KB 0644
ImageShow.cpython-313.pyc File 13.72 KB 0644
ImageStat.cpython-313.pyc File 7.13 KB 0644
ImageTransform.cpython-313.pyc File 5.19 KB 0644
ImageWin.cpython-313.pyc File 11.44 KB 0644
ImtImagePlugin.cpython-313.pyc File 2.55 KB 0644
IptcImagePlugin.cpython-313.pyc File 8.91 KB 0644
Jpeg2KImagePlugin.cpython-313.pyc File 18.34 KB 0644
JpegImagePlugin.cpython-313.pyc File 33.72 KB 0644
JpegPresets.cpython-313.pyc File 7.9 KB 0644
McIdasImagePlugin.cpython-313.pyc File 2.23 KB 0644
MicImagePlugin.cpython-313.pyc File 3.85 KB 0644
MpegImagePlugin.cpython-313.pyc File 3.68 KB 0644
MpoImagePlugin.cpython-313.pyc File 8.04 KB 0644
MspImagePlugin.cpython-313.pyc File 5.87 KB 0644
PSDraw.cpython-313.pyc File 7.67 KB 0644
PaletteFile.cpython-313.pyc File 1.9 KB 0644
PalmImagePlugin.cpython-313.pyc File 9.46 KB 0644
PcdImagePlugin.cpython-313.pyc File 2.05 KB 0644
PcfFontFile.cpython-313.pyc File 9.68 KB 0644
PcxImagePlugin.cpython-313.pyc File 7.27 KB 0644
PdfImagePlugin.cpython-313.pyc File 9.64 KB 0644
PdfParser.cpython-313.pyc File 52.78 KB 0644
PixarImagePlugin.cpython-313.pyc File 1.94 KB 0644
PngImagePlugin.cpython-313.pyc File 61.98 KB 0644
PpmImagePlugin.cpython-313.pyc File 14.13 KB 0644
PsdImagePlugin.cpython-313.pyc File 10.81 KB 0644
QoiImagePlugin.cpython-313.pyc File 6.02 KB 0644
SgiImagePlugin.cpython-313.pyc File 8.37 KB 0644
SpiderImagePlugin.cpython-313.pyc File 12.27 KB 0644
SunImagePlugin.cpython-313.pyc File 3.42 KB 0644
TarIO.cpython-313.pyc File 1.86 KB 0644
TgaImagePlugin.cpython-313.pyc File 8.11 KB 0644
TiffImagePlugin.cpython-313.pyc File 99.07 KB 0644
TiffTags.cpython-313.pyc File 18.43 KB 0644
WalImageFile.cpython-313.pyc File 4.01 KB 0644
WebPImagePlugin.cpython-313.pyc File 13.27 KB 0644
WmfImagePlugin.cpython-313.pyc File 6.19 KB 0644
XVThumbImagePlugin.cpython-313.pyc File 2.61 KB 0644
XbmImagePlugin.cpython-313.pyc File 4.05 KB 0644
XpmImagePlugin.cpython-313.pyc File 4.2 KB 0644
__init__.cpython-313.pyc File 1.98 KB 0644
__main__.cpython-313.pyc File 346 B 0644
_binary.cpython-313.pyc File 3.24 KB 0644
_deprecate.cpython-313.pyc File 2.37 KB 0644
_tkinter_finder.cpython-313.pyc File 745 B 0644
_typing.cpython-313.pyc File 2.14 KB 0644
_util.cpython-313.pyc File 1.5 KB 0644
_version.cpython-313.pyc File 222 B 0644
features.cpython-313.pyc File 13.58 KB 0644
report.cpython-313.pyc File 278 B 0644
Filemanager