Merge pull request #452 from MiK-Kom4/fix-gray-cmap

Fix: display grayscale image using cmap='gray'
This commit is contained in:
Lee Stott 2025-09-07 15:46:31 +01:00 committed by GitHub
commit 314f8b8b17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@
"source": [
"bw_im = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY)\n",
"print(bw_im.shape)\n",
"plt.imshow(bw_im)"
"plt.imshow(bw_im, cmap='gray')"
]
},
{