DebasishDhal99 commited on
Commit
d6e5112
·
1 Parent(s): ebacab7

Update channel_functions.py

Browse files
Files changed (1) hide show
  1. channel_functions.py +2 -2
channel_functions.py CHANGED
@@ -107,9 +107,9 @@ def which_channel_dominates(img_arr, original_image_plot = 'yes', original_image
107
  cmap = mcolors.ListedColormap(['red', 'green', 'blue', 'white', 'black', 'gray'])
108
  img_arr = img_arr[:,:,:3]
109
 
110
- red_channel = img_arr[:,:,2]
111
  green_channel = img_arr[:,:,1]
112
- blue_channel = img_arr[:,:,0]
113
 
114
 
115
  print("Red channel max. = ", np.max(red_channel), "Green max. = ", np.max(green_channel), "Blue max. = ",np.max(blue_channel))
 
107
  cmap = mcolors.ListedColormap(['red', 'green', 'blue', 'white', 'black', 'gray'])
108
  img_arr = img_arr[:,:,:3]
109
 
110
+ red_channel = img_arr[:,:,0]
111
  green_channel = img_arr[:,:,1]
112
+ blue_channel = img_arr[:,:,2]
113
 
114
 
115
  print("Red channel max. = ", np.max(red_channel), "Green max. = ", np.max(green_channel), "Blue max. = ",np.max(blue_channel))