Skip to content

Instantly share code, notes, and snippets.

@ArnoutDevos
Created January 8, 2018 11:37
Show Gist options
  • Save ArnoutDevos/7f323379ca6664252fb93a7a0f87afc5 to your computer and use it in GitHub Desktop.
Save ArnoutDevos/7f323379ca6664252fb93a7a0f87afc5 to your computer and use it in GitHub Desktop.
fig = plt.figure(figsize=(10,10))
ax1 = plt.subplot(221)
ax2 = plt.subplot(222)
ax3 = plt.subplot(223)
ax4 = plt.subplot(224)
gen_image = generate_noise_image(content_image, 0.0)
ax1.imshow(gen_image)
ax1.set_title('Noise ratio: 0.0')
gen_image = generate_noise_image(content_image, 0.25)
ax2.imshow(gen_image)
ax2.set_title('Noise ratio: 0.25')
gen_image = generate_noise_image(content_image, 0.50)
ax3.imshow(gen_image)
ax3.set_title('Noise ratio: 0.50')
gen_image = generate_noise_image(content_image, 0.75)
ax4.imshow(gen_image)
ax4.set_title('Noise ratio: 0.75')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment