Create display_images.py
Browse files- display_images.py +13 -0
display_images.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import matplotlib.pyplot as plt
|
| 2 |
+
plt.figure(figsize=(10, 5))
|
| 3 |
+
plt.subplot(1, 2, 1)
|
| 4 |
+
plt.imshow(black_white_image, cmap='gray')
|
| 5 |
+
plt.title('Original Image')
|
| 6 |
+
plt.axis('off')
|
| 7 |
+
|
| 8 |
+
plt.subplot(1, 2, 2)
|
| 9 |
+
plt.imshow(tmp, cmap='gray')
|
| 10 |
+
plt.title('Output Image with Black Patches')
|
| 11 |
+
plt.axis('off')
|
| 12 |
+
|
| 13 |
+
plt.show()
|