Last active
January 8, 2018 11:33
-
-
Save ArnoutDevos/85c4862df37582f7380269585a94b90e 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
[content_image_raw, content_image] = load_image(CONTENT_IMAGE) | |
[style_image_raw, style_image] = load_image(STYLE_IMAGE) | |
fig = plt.figure(figsize=(10,10)) | |
ax1 = plt.subplot(221) | |
ax2 = plt.subplot(222) | |
ax3 = plt.subplot(223) | |
ax4 = plt.subplot(224) | |
def normalize(image): | |
return (1.*image - np.min(image))/(np.max(image) - np.min(image)) | |
ax1.imshow(content_image_raw) | |
ax1.set_title('Content Image') | |
ax2.imshow(content_image) | |
ax2.set_title('Content Image Subtracted') | |
ax3.imshow(style_image_raw) | |
ax3.set_title('Style Image') | |
ax4.imshow(style_image) | |
ax4.set_title('Style Image Subtracted') | |
# Show the resulting image | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment