Last active
May 3, 2026 11:43
-
-
Save monogenea/62014b974f453ecae1e4523999720f32 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| fig, axes = plt.subplots(2, 3, figsize=(14, 8)) | |
| configs = [ | |
| (1.4, 20, 60, '↑ Recall, ↑ Noise\nσ=1.4, T=20/60'), | |
| (1.4, 50, 150, 'Balanced\nσ=1.4, T=50/150'), | |
| (1.4, 100, 200, '↓ Recall, ↓ Noise\nσ=1.4, T=100/200'), | |
| (0.5, 50, 150, 'Fine scale\nσ=0.5, T=50/150'), | |
| (2.0, 50, 150, 'Coarse scale\nσ=2.0, T=50/150'), | |
| (4.0, 50, 150, 'Very coarse scale\nσ=4.0, T=50/150'), | |
| ] | |
| for ax, (sigma, tl, th, title) in zip(axes.ravel(), configs): | |
| result = run_canny(image, sigma=sigma, t_low=tl, t_high=th) | |
| ax.imshow(result, cmap='gray') | |
| ax.set_title(title, fontsize=9) | |
| 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