3 }úÿ\ˆ ã@shddlmZmZmZGdd„deƒZGdd„deƒZGdd„deƒZGdd „d eƒZGd d „d eƒZ d S) é)ÚImageÚ ImageFilterÚ ImageStatc@seZdZdd„ZdS)Ú_EnhancecCstj|j|j|ƒS)aµ 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` )rZblendÚ degenerateÚimage)ÚselfZfactor©r úh/private/var/folders/pf/wv4htv3x0qs2c2mp0dnn0kchsvlck3/T/pip-install-i584jbuk/Pillow/PIL/ImageEnhance.pyÚenhances z_Enhance.enhanceN)Ú__name__Ú __module__Ú __qualname__r r r r r rsrc@seZdZdZdd„ZdS)ÚColoraAdjust 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. cCs8||_d|_d|jƒkrd|_|j|jƒj|jƒ|_dS)NÚLÚAZLA)rZintermediate_modeÚgetbandsÚconvertÚmoder)rrr r r Ú__init__0s  zColor.__init__N)r r rÚ__doc__rr r r r r(src@seZdZdZdd„ZdS)ÚContrastzò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 grey image. A factor of 1.0 gives the original image. cCs`||_ttj|jdƒƒjddƒ}tjd|j|ƒj|j ƒ|_ d|j ƒkr\|j j |j dƒƒdS)Nrégà?r)rÚintrZStatrÚmeanrÚnewÚsizerrrÚputalphaÚ getchannel)rrrr r r rAs  zContrast.__init__N)r r rrrr r r r r:src@seZdZdZdd„ZdS)Ú BrightnesszÅ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. cCs<||_tj|j|jdƒ|_d|jƒkr8|jj|jdƒƒdS)Nrr) rrrrrrrrr)rrr r r rQs zBrightness.__init__N)r r rrrr r r r rJsrc@seZdZdZdd„ZdS)Ú Sharpnesszð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. cCs6||_|jtjƒ|_d|jƒkr2|jj|jdƒƒdS)Nr)rÚfilterrZSMOOTHrrrr)rrr r r r`s zSharpness.__init__N)r r rrrr r r r r Ysr N) ÚrrrÚobjectrrrrr r r r r Ús