Python Imaging Library: ImageEnhance Module(图像增强模块)
来源:互联网 发布:电动汽车销售量数据 编辑:程序博客网 时间:2024/06/07 20:32
Python Imaging Library: ImageEnhance Module(图像增强模块)
# 图像增强模块(ImageEnhance Module)
PilImg_Enhance = Image.open('图像5.jpg')
# 颜色增强
# ImageEnhance.Color(image) ⇒ Color enhancer instance
PilImg_Color = ImageEnhance.Color(PilImg_Enhance)
# for i in range(5):
# factor = i * 4.0
# PilImg_Color.enhance(factor).show("Color %f" % factor)
# 亮度增强
# ImageEnhance.Brightness(image) ⇒ Brightness enhancer instance
# PilImg_Brightness = ImageEnhance.Brightness(PilImg_Enhance)
# for i in range(5):
# factor = i * 2.0
# PilImg_Brightness.enhance(factor).show("Brightness %f" % factor)
# 对比度增强
# ImageEnhance.Contrast(image) ⇒ Contrast enhancer instance
# PilImg_Contrast = ImageEnhance.Contrast(PilImg_Enhance)
# for i in range(5):
# factor = i * 2.0
# PilImg_Contrast.enhance(factor).show("Contrast %f" % factor)
# 锐度增强
# ImageEnhance.Sharpness(image) ⇒ Sharpness enhancer instance
# PilImg_Sharpness = ImageEnhance.Sharpness(PilImg_Enhance)
# for i in range(5):
# factor = i * 4.0
# PilImg_Sharpness.enhance(factor).show("Sharpness %f" % factor)
- Python Imaging Library: ImageEnhance Module(图像增强模块)
- Python Imaging Library: ImageColor Module(图像颜色模块)
- Python Imaging Library: ImageChops Module(图像通道操作模块)
- Python Imaging Library:ImageDraw Module(图像绘制模块)
- Python Imaging Library: ImageFilter Module(图像滤波模块)
- Python Imaging Library: ImageGrab Module(图像采集模块)
- Python Imaging Library: ImageMath Module(图像数学运算模块)
- Python Imaging Library: ImageOps Module(图像运算模块)
- Python Imaging Library: ImagePalette Module(图像调色板模块)
- Python Imaging Library: ImagePath Module(图像路径模块)
- Python Imaging Library: ImageQt Module(图像QT模块)
- Python Imaging Library: ImageSequence Module(图像序列模块)
- Python Imaging Library: ImageStat Module(图像统计模块)
- Python Imaging Library: ImageTk Module(图像Tkinter模块)
- Python Imaging Library: ImageWin Module(图像Windows模块)
- Python Imaging Library: ImageFile Module(图像文件模块)
- Python Imaging Library: PSDraw Module(Postscript打印机模块)
- 【python图像处理】图像的增强(ImageEnhance类详解)
- 【jiava】--简介JPA
- 41-类型转换函数(上)
- 数据结构(四)---稀疏矩阵转三元组的相关操作
- 原型
- 第一范式、第二范式、第三范式
- Python Imaging Library: ImageEnhance Module(图像增强模块)
- RESTful Service API 设计最佳工程实践和常见问题解决方案
- Reactor 模式
- 设计师要懂心理学
- python mysql连接
- 20171029_该还的就得加倍的还!
- 关于线上支付的实现思想方法与例子
- hibernate基本配置
- IP地址能不能被泄露?