Commit
·
65c7d35
1
Parent(s):
bd67e2f
Update channel_functions.py
Browse files- channel_functions.py +1 -1
channel_functions.py
CHANGED
|
@@ -84,7 +84,7 @@ def which_channel_dominates(img_arr, original_image_plot = 'yes', original_image
|
|
| 84 |
print(np.max(red_channel), np.max(green_channel), np.max(blue_channel))
|
| 85 |
|
| 86 |
if original_image_plot == 'yes':
|
| 87 |
-
plt.imshow(cv2.cvtColor(
|
| 88 |
|
| 89 |
which_channel_dominates = np.zeros((img_arr.shape[0],img_arr.shape[1]))
|
| 90 |
|
|
|
|
| 84 |
print(np.max(red_channel), np.max(green_channel), np.max(blue_channel))
|
| 85 |
|
| 86 |
if original_image_plot == 'yes':
|
| 87 |
+
plt.imshow(cv2.cvtColor(img_arr,cv2.COLOR_BGR2RGB), alpha=original_image_opacity)
|
| 88 |
|
| 89 |
which_channel_dominates = np.zeros((img_arr.shape[0],img_arr.shape[1]))
|
| 90 |
|