9. ImageFilter Edge Enhance
9.1. Edge enhance
Use the
Image.filter(ImageFilter.EDGE_ENHANCE)
method to edge enhance an image.from PIL import Image, ImageFilter
with Image.open("test_images/alph_blocks.png") as im:
new_im = im.filter(ImageFilter.EDGE_ENHANCE)
new_im.save("filters/edge_enhance.png")
Unfiltered, edge_enhance and edge_enhance_more are compared below: