Created
January 4, 2018 07:35
-
-
Save ArnoutDevos/c2e775cffd4eacaafc5bc11b43f0a46f 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)) | |
#print np.max(content_image_raw) | |
#print np.min(content_image_raw) | |
#print np.max(content_image) | |
#print np.min(content_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