Skip to content

Instantly share code, notes, and snippets.

@monogenea
Last active May 3, 2026 11:40
Show Gist options
  • Select an option

  • Save monogenea/4a0e9895286ba3968d3d99c3de718607 to your computer and use it in GitHub Desktop.

Select an option

Save monogenea/4a0e9895286ba3968d3d99c3de718607 to your computer and use it in GitHub Desktop.
import cv2 as cv2
import numpy as np
import matplotlib.pyplot as plt
from skimage import data
from scipy.ndimage import gaussian_laplace
# Load a greyscale test image (uint8, values 0–255)
image = data.camera()
fig, ax = plt.subplots(figsize=(5, 5))
ax.imshow(image, cmap='gray')
ax.set_title('Original image')
ax.axis('off')
plt.tight_layout()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment