DebasishDhal99 commited on
Commit
6ad333a
·
1 Parent(s): d1c1fb7

Update channel_functions.py

Browse files
Files changed (1) hide show
  1. channel_functions.py +2 -2
channel_functions.py CHANGED
@@ -73,6 +73,8 @@ def channel_distribution_plotter(img_array):
73
  img_array = img_array[:,:,:3] #Not considering the A channel, if it's a RGBA image.
74
 
75
  fig, ax = plt.subplots(figsize=(8,8))
 
 
76
 
77
  plt.subplot(2,2,1)
78
  plt.hist(img_array[:,:,0].ravel(),bins=256,color='red');
@@ -88,8 +90,6 @@ def channel_distribution_plotter(img_array):
88
 
89
  plt.subplot(2,2,4)
90
  plt.imshow(cv2.cvtColor(np.flip(img_array, axis=-1),cv2.COLOR_BGR2RGB))
91
- plt.yticks([])
92
- plt.xticks([])
93
  # plt.imshow(cv2.cvtColor(img_array,cv2.COLOR_RGB2BGR))
94
  plt.title("Original Image")
95
 
 
73
  img_array = img_array[:,:,:3] #Not considering the A channel, if it's a RGBA image.
74
 
75
  fig, ax = plt.subplots(figsize=(8,8))
76
+ plt.yticks([])
77
+ plt.xticks([])
78
 
79
  plt.subplot(2,2,1)
80
  plt.hist(img_array[:,:,0].ravel(),bins=256,color='red');
 
90
 
91
  plt.subplot(2,2,4)
92
  plt.imshow(cv2.cvtColor(np.flip(img_array, axis=-1),cv2.COLOR_BGR2RGB))
 
 
93
  # plt.imshow(cv2.cvtColor(img_array,cv2.COLOR_RGB2BGR))
94
  plt.title("Original Image")
95