Pillow Image Filter

https://www.jianshu.com/p/3174257e619e

https://zhuanlan.zhihu.com/p/62737338

https://www.cnblogs.com/linyouyi/p/11429511.html

# pillow官方Lib

https://pillow.readthedocs.io/en/stable/reference/Image.html

PIL 是一个图像处理库,可以对图像做很多处理。目前我使用较多的是Image与ImageFilter

1. 图片读取 Image.open()

2.图片显示img.show()

3.图片模式转换  img.convert(mode)    一般使用的 mode = 'L' , 'RGB'                     https://blog.csdn.net/icamera0/article/details/50843172

4.新建图片   img_r = Image.new("RGB",(32,32),"red")

5.maxFilter    maxF = im.filter(ImageFilter.MaxFilter(5))

 

from PIL import Image,ImageFilter

pathC = 'C:\Users\harri\Desktop\2020T2\9517\assignment\COMP9517_20T2_Assignment_Images\Cells.png'

img = Image.open(path)

原文地址:https://www.cnblogs.com/ChevisZhang/p/13127149.html