title: Unable to split opencv image to RGB
body: <p>I'm trying to split an image into <code>B,G,R</code> but after splitting, each B G &amp; R have grayscale images.</p>
  
  <pre><code>import cv2
  import numpy as np
  
  image = cv2.imread('/path/image.jpg') #I have tried using CV_LOAD_IMAGE_COLOR flag as well as 1
  #however,image is read as color image. It is not a grayscale image
  
  b,g,r = cv2.split(image)
  #[b,g,r]=np.dsplit(image,image.shape[-1])
  #b,g,r = cv2.split(image)
  #b = image[:,:,0]
  #g = image[:,:,1]
  #r = image[:,:,2]
  
  #none of the above worked
  
  cv2.imshow("green",g)
  cv2.waitKey(0)
  cv2.destroyAllWindows()
  </code></pre>
  
  <p>please help me to split the image into BGR. I have even tried it with different images.</p>