Created
September 22, 2020 05:10
-
-
Save vineethm1627/62561e254f855a84f1074175553b5796 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
images = [img, edge_roberts, edge_prewitt, edge_sobel] | |
names = ["input", "roberts", "prewitt", "sobel"] | |
fig = plt.figure(figsize = (8, 8)) | |
for i in range(4): | |
fig.add_subplot(2, 2, i + 1) | |
plt.title(names[i]) | |
plt.imshow(images[i], cmap = 'gray') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simplest way to plot
plt.figure(figsize = (8, 8))
for i in range(4):
plt.subplot(2, 2, i + 1)
plt.imshow(images[i])