Python图像处理库PIL的ImageFilter模块使用介绍-创新互联
ImageFilter模块提供了滤波器相关定义;这些滤波器主要用于Image类的filter()方法。
一、ImageFilter模块所支持的滤波器
当前的PIL版本中ImageFilter模块支持十种滤波器:
1、 BLUR
ImageFilter.BLUR为模糊滤波,处理之后的图像会整体变得模糊。
例子:
>>> from PIL importImageFilter >>> im02 =Image.open("D:\\Code\\Python\\test\\img\\test02.jpg") >>> im = im02.filter(ImageFilter.BLUR)
另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
网站栏目:Python图像处理库PIL的ImageFilter模块使用介绍-创新互联
网页URL:http://myzitong.com/article/csjopg.html