ó
    Eñi+  ã                  ó�   • S SK Jr  SSKJrJrJr   " S S5      r " S S\5      r " S S	\5      r " S
 S\5      r	 " S S\5      r
g)é    )Úannotationsé   )ÚImageÚImageFilterÚ	ImageStatc                  ó4   • \ rS rSr% S\S'   S\S'   SS jrSrg)	Ú_Enhanceé   úImage.ImageÚimageÚ
degeneratec                óZ   • [         R                  " U R                  U R                  U5      $ )au  
Returns an enhanced image.

:param factor: A floating point value controlling the enhancement.
               Factor 1.0 always returns a copy of the original image,
               lower factors mean less color (brightness, contrast,
               etc), and higher values more. There are no restrictions
               on this value.
:rtype: :py:class:`~PIL.Image.Image`
)r   Úblendr   r   )ÚselfÚfactors     ÚM/home/mande/repo/quber/.venv/lib/python3.13/site-packages/PIL/ImageEnhance.pyÚenhanceÚ_Enhance.enhance   s   € ô �{Š{˜4Ÿ?™?¨D¯J©J¸Ó?Ð?ó    © N)r   ÚfloatÚreturnr   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__r   Ú__static_attributes__r   r   r   r	   r	      s   ‡ ØÓØÓ÷@r   r	   c                  ó"   • \ rS rSrSrSS jrSrg)ÚColoré+   züAdjust image color balance.

This class can be used to adjust the colour balance of an image, in
a manner similar to the controls on a colour TV set. An enhancement
factor of 0.0 gives a black and white image. A factor of 1.0 gives
the original image.
c                óü   • Xl         SU l        SUR                  5       ;   a  SU l        U R                  UR                  :w  a4  UR	                  U R                  5      R	                  UR                  5      nXl        g )NÚLÚAÚLA)r   Úintermediate_modeÚgetbandsÚmodeÚconvertr   ©r   r   s     r   Ú__init__ÚColor.__init__4   s`   € ØŒ
Ø!$ˆÔØ�%—.‘.Ó"Ó"Ø%)ˆDÔ"à×!Ñ! U§Z¡ZÓ/Ø—M‘M $×"8Ñ"8Ó9×AÑAÀ%Ç*Á*ÓMˆEØ�r   )r   r   r&   N©r   r   r   ÚNone©r   r   r   r   Ú__doc__r+   r   r   r   r   r    r    +   s   † ñ÷ r   r    c                  ó"   • \ rS rSrSrSS jrSrg)ÚContrasté?   zâAdjust image contrast.

This class can be used to control the contrast of an image, similar
to the contrast control on a TV set. An enhancement factor of 0.0
gives a solid gray image. A factor of 1.0 gives the original image.
c                óh  • Xl         UR                  S:w  a  UR                  S5      n[        [        R
                  " U5      R                  S   S-   5      n[        R                  " SUR                  U5      U l
        U R                  R                  U R                   R                  :w  a4  U R                  R                  U R                   R                  5      U l
        SU R                   R                  5       ;   a5  U R                  R                  U R                   R                  S5      5        g g )Nr#   r   g      à?r$   )r   r(   r)   Úintr   ÚStatÚmeanr   ÚnewÚsizer   r'   ÚputalphaÚ
getchannel)r   r   r7   s      r   r+   ÚContrast.__init__G   sÏ   € ØŒ
Ø�:‰:˜ÓØ—M‘M #Ó&ˆEÜ”9—>’> %Ó(×-Ñ-¨aÑ0°3Ñ6Ó7ˆÜŸ)š) C¨¯©°TÓ:ˆŒØ�?‰?×Ñ 4§:¡:§?¡?Ó2Ø"Ÿo™o×5Ñ5°d·j±j·o±oÓFˆDŒOà�$—*‘*×%Ñ%Ó'Ó'Ø�O‰O×$Ñ$ T§Z¡Z×%:Ñ%:¸3Ó%?Õ@ð (r   ©r   r   Nr-   r/   r   r   r   r2   r2   ?   s   † ñ÷
Ar   r2   c                  ó"   • \ rS rSrSrSS jrSrg)Ú
BrightnesséT   zµAdjust image brightness.

This class can be used to control the brightness of an image.  An
enhancement factor of 0.0 gives a black image. A factor of 1.0 gives the
original image.
c                óð   • Xl         [        R                  " UR                  UR                  S5      U l        SUR                  5       ;   a+  U R
                  R                  UR                  S5      5        g g )Nr   r$   )	r   r   r8   r(   r9   r   r'   r:   r;   r*   s     r   r+   ÚBrightness.__init__\   sT   € ØŒ
ÜŸ)š) E§J¡J°·
±
¸AÓ>ˆŒà�%—.‘.Ó"Ó"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   r=   Nr-   r/   r   r   r   r?   r?   T   ó   † ñ÷<r   r?   c                  ó"   • \ rS rSrSrSS jrSrg)Ú	Sharpnesséd   zàAdjust image sharpness.

This class can be used to adjust the sharpness of an image. An
enhancement factor of 0.0 gives a blurred image, a factor of 1.0 gives the
original image, and a factor of 2.0 gives a sharpened image.
c                óÖ   • Xl         UR                  [        R                  5      U l        SUR                  5       ;   a+  U R                  R                  UR                  S5      5        g g )Nr$   )r   Úfilterr   ÚSMOOTHr   r'   r:   r;   r*   s     r   r+   ÚSharpness.__init__l   sN   € ØŒ
ØŸ,™,¤{×'9Ñ'9Ó:ˆŒà�%—.‘.Ó"Ó"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   r=   Nr-   r/   r   r   r   rE   rE   d   rC   r   rE   N)Ú
__future__r   Ú r   r   r   r	   r    r2   r?   rE   r   r   r   Ú<module>rM      sN   ðõ( #ç +Ñ +÷@ñ @ô$ ˆHô  ô(Aˆxô Aô*<�ô <ô <�õ <r   