Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 2.27 KB

ImageEnhance.rst

File metadata and controls

74 lines (49 loc) · 2.27 KB

:pyImageEnhance Module

The :pyImageEnhance module contains a number of classes that can be used for image enhancement.

Example: Vary the sharpness of an image

from PIL import ImageEnhance

enhancer = ImageEnhance.Sharpness(image)

for i in range(8):
    factor = i / 4.0
    enhancer.enhance(factor).show("Sharpness %f" % factor)

Also see the enhancer.py demo program in the Scripts/ directory.

Classes

All enhancement classes implement a common interface, containing a single method: