Skip to content

Instantly share code, notes, and snippets.

@shayaf84
Last active November 20, 2021 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shayaf84/eae9ceb2a2c276bbbe1af9729ef3fbff to your computer and use it in GitHub Desktop.
Save shayaf84/eae9ceb2a2c276bbbe1af9729ef3fbff to your computer and use it in GitHub Desktop.
interpolatedImages = interpolation(baseline=baseline,image=image,alpha=alpha)
fig = plt.figure(figsize=(20, 20))
i = 0
for alphas, image in zip(alpha[0::10], interpolatedImages[0::10]):
i += 1
plt.subplot(1, len(alpha[0::10]), i)
plt.title(f'alpha: {alphas:.1f}')
plt.imshow(image)
plt.axis('off')
plt.tight_layout();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment