|
from PIL import ImageFilter |
|
|
|
|
|
def blur(image): |
|
image_working = image.filter(ImageFilter.BLUR()) |
|
return image_working |
|
|
|
|
|
def contour(image): |
|
image_working = image.filter(ImageFilter.CONTOUR()) |
|
return image_working |
|
|
|
|
|
def detail(image): |
|
image_working = image.filter(ImageFilter.DETAIL()) |
|
return image_working |
|
|
|
|
|
def edge(image): |
|
image_working = image.filter(ImageFilter.EDGE_ENHANCE()) |
|
return image_working |
|
|
|
|
|
def edgeMore(image): |
|
image_working = image.filter(ImageFilter.EDGE_ENHANCE_MORE()) |
|
return image_working |
|
|
|
|
|
def emboss(image): |
|
image_working = image.filter(ImageFilter.EMBOSS()) |
|
return image_working |
|
|
|
|
|
def findEdges(image): |
|
image_working = image.filter(ImageFilter.FIND_EDGES()) |
|
return image_working |
|
|
|
|
|
def sharpen(image): |
|
image_working = image.filter(ImageFilter.SHARPEN()) |
|
return image_working |
|
|
|
|
|
def smoot(image): |
|
image_working = image.filter(ImageFilter.SMOOTH()) |
|
return image_working |
|
|
|
|
|
def smootMore(image): |
|
image_working = image.filter(ImageFilter.SMOOTH_MORE()) |
|
return image_working |
|
|
|
|
|
def gaussianBlur(image, radius): |
|
image_working = image.filter(ImageFilter.GaussianBlur(radius=radius)) |
|
return image_working |
|
|
|
|
|
def boxBlur(image, radius): |
|
image_working = image.filter(ImageFilter.BoxBlur(radius=radius)) |
|
return image_working |
|
|
|
|
|
def unsharpMask(image, radius, percent, threshold): |
|
image_working = image.filter(ImageFilter.UnsharpMask(radius=radius, percent=percent, threshold=threshold)) |
|
return image_working |
|
|