DebasishDhal99 commited on
Commit
bd67e2f
·
1 Parent(s): 0898363

Update channel_functions.py

Browse files
Files changed (1) hide show
  1. channel_functions.py +1 -1
channel_functions.py CHANGED
@@ -34,7 +34,7 @@ def individual_channel_image(img_arr, channel= 'r', ax=None):
34
 
35
  if ax is not None:
36
  if channel_name == 'Original':
37
- ax.imshow(cv2.cvtColor(img,cv2.COLOR_BGR2RGB))
38
  else:
39
  plot = ax.imshow(plot_arr, cmap = cmap)
40
  plt.colorbar(plot, orientation= 'vertical', ax = ax)
 
34
 
35
  if ax is not None:
36
  if channel_name == 'Original':
37
+ ax.imshow(cv2.cvtColor(img_arr,cv2.COLOR_BGR2RGB))
38
  else:
39
  plot = ax.imshow(plot_arr, cmap = cmap)
40
  plt.colorbar(plot, orientation= 'vertical', ax = ax)