2017-07-14 49 views
0

我正在Python中构建一些示例图像编辑器。我想设置规模变化像模糊此ImageFilter值:图像处理:ImageFilter:我们可以将值设置为图像FIlter

filter(ImageFilter.GaussianBlur(float(val))) 

在模糊效果,可以在大规模的变化而变化的值.. 同我要上规模的值设置为其他滤镜效果&根据图像变化发生:

• ImageFilter.CONTOUR 
• ImageFilter.DETAIL 
• ImageFilter.EDGE_ENHANCE 
• ImageFilter.EDGE_ENHANCE_MORE 
• ImageFilter.EMBOSS 
• ImageFilter.FIND_EDGES 
• ImageFilter.SMOOTH 
• ImageFilter.SMOOTH_MORE 
• ImageFilter.SHARPEN 

有没有什么办法来设置imageFilter效果百分比/值? 请帮忙...

回答