Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import numpy as np
from PIL import Image, ImageFilter
from matplotlib import pyplot as plt
img = Image.open("imgs/chapter5/outdoor.jpg")
#######################FOCUS##################
sharpened = img.filter(ImageFilter.SHARPEN)
##############################################
f = plt.figure(figsize=(15,15))
f.add_subplot(2, 1, 1).set_title('Original Image')
plt.imshow(img)
f.add_subplot(2, 1, 2).set_title('Sharpened Image')
plt.imshow(sharpened);
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.