Created
March 26, 2020 06:20
-
-
Save THEFASHIONGEEK/c5863e5a749ebe6774518bc443730a1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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