【发布时间】:2011-05-07 18:15:12
【问题描述】:
只是一个简单的对比度和饱和度增强。 没什么特别的。
【问题讨论】:
标签: python algorithm image python-imaging-library
只是一个简单的对比度和饱和度增强。 没什么特别的。
【问题讨论】:
标签: python algorithm image python-imaging-library
因为 PIL 大部分时间都已经死了。改为安装 Pillow 前叉 sudo pip install pillow,并使用其 ImageEnhance 模块 http://pillow.readthedocs.org/en/3.0.x/reference/ImageEnhance.html
>>> from PIL import Image, ImageEnhance
>>> image = Image.open('downloads/jcfeb2011.jpg')
>>> contrast = ImageEnhance.Contrast(image)
>>> image.show()
>>> contrast.enhance(2).show()
【讨论】: