Commit
·
be8ca19
1
Parent(s):
65c7d35
Update channel_functions.py
Browse files- channel_functions.py +3 -1
channel_functions.py
CHANGED
|
@@ -105,6 +105,7 @@ def which_channel_dominates(img_arr, original_image_plot = 'yes', original_image
|
|
| 105 |
print(np.unique(which_channel_dominates))
|
| 106 |
|
| 107 |
#Map the color code to the image
|
|
|
|
| 108 |
plot = plt.imshow(which_channel_dominates, cmap=cmap, alpha=channel_opacity)
|
| 109 |
|
| 110 |
#Customize the ticks of the colorbar
|
|
@@ -115,4 +116,5 @@ def which_channel_dominates(img_arr, original_image_plot = 'yes', original_image
|
|
| 115 |
)
|
| 116 |
|
| 117 |
text = "Which channel dominates in the image below?\nWhite : R=G=B=255, Black : R=G=B=0\nGray : 0 < R=G=B< 255"
|
| 118 |
-
plt.title(text)
|
|
|
|
|
|
| 105 |
print(np.unique(which_channel_dominates))
|
| 106 |
|
| 107 |
#Map the color code to the image
|
| 108 |
+
# fig, ax = plt.subplots(figsize=(8,8))
|
| 109 |
plot = plt.imshow(which_channel_dominates, cmap=cmap, alpha=channel_opacity)
|
| 110 |
|
| 111 |
#Customize the ticks of the colorbar
|
|
|
|
| 116 |
)
|
| 117 |
|
| 118 |
text = "Which channel dominates in the image below?\nWhite : R=G=B=255, Black : R=G=B=0\nGray : 0 < R=G=B< 255"
|
| 119 |
+
plt.title(text)
|
| 120 |
+
plt.plot()
|