Skip to content

Instantly share code, notes, and snippets.

@vmarkovtsev
Last active November 27, 2019 22:03
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 vmarkovtsev/e612ccaf045fa228966241dd5a98539f to your computer and use it in GitHub Desktop.
Save vmarkovtsev/e612ccaf045fa228966241dd5a98539f to your computer and use it in GitHub Desktop.
# The kernel size is 15 instead of 5 for greater detail.
dim = 15
kernel = np.squeeze(create_lanczos_resize_kernel(dim).numpy()[:, :, 0, 0])
plt.contourf(np.linspace(-dim, dim, dim * 2 + 1), np.linspace(-dim, dim, dim * 2 + 1), kernel)
plt.colorbar()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment