Spaces:
Sleeping
Sleeping
Commit ·
7e20959
1
Parent(s): eda86ae
Update channel_functions.py
Browse files- channel_functions.py +1 -1
channel_functions.py
CHANGED
|
@@ -137,7 +137,7 @@ def which_channel_dominates(img_arr, original_image_plot = 'yes', original_image
|
|
| 137 |
fig, ax = plt.subplots(figsize=(8,8))
|
| 138 |
|
| 139 |
if original_image_plot == 'yes':
|
| 140 |
-
plt.imshow(cv2.cvtColor(img_arr,cv2.COLOR_BGR2RGB), alpha=original_image_opacity)
|
| 141 |
|
| 142 |
plot = plt.imshow(which_channel_dominates, cmap=cmap, alpha=channel_opacity)
|
| 143 |
|
|
|
|
| 137 |
fig, ax = plt.subplots(figsize=(8,8))
|
| 138 |
|
| 139 |
if original_image_plot == 'yes':
|
| 140 |
+
plt.imshow(cv2.cvtColor(np.flip(img_arr, axis=-1),cv2.COLOR_BGR2RGB), alpha=original_image_opacity)
|
| 141 |
|
| 142 |
plot = plt.imshow(which_channel_dominates, cmap=cmap, alpha=channel_opacity)
|
| 143 |
|