title: How to slice an image into red, green and blue channels with misc.imread
body: <p>I am trying to slice an image into RGB and I have a problem with plotting these images. 
  I obtain all images from a certain folder with this function:</p>
  
  <pre><code>def get_images(path, image_type):
  image_list = []
  for filename in glob.glob(path + '/*'+ image_type):
      im=misc.imread(filename, mode='RGB')
      image_list.append(im)
  return image_list
  </code></pre>
  
  <p>This function creates 4d array (30, 1536, 2048, 3) and I am quite sure that the first value represents number of images, second and third are dimensions and third are RGB values.</p>
  
  <p>After I obtained all the images, I stored them as a numpy array </p>
  
  <pre><code>image_list = get_images('C:\HDR\images', '.jpg')
  temp = np.array(image_list)
  </code></pre>
  
  <p>After that I tried to use simple slicing on order to take specific colors from these images:</p>
  
  <pre><code>red_images = temp[:,:,:,0]
  green_images = temp[:,:,:,1]
  blue_images = temp[:,:,:,2]
  </code></pre>
  
  <p>When I print out the values, everything seems to be fine.</p>
  
  <pre><code>print(temp[11,125,311,:])
  print(red_images[11,125,311])
  print(green_images[11,125,311])
  print(blue_images[11,125,311])
  </code></pre>
  
  <p>And I get the following:</p>
  
  <pre><code>[105  97  76]
  105
  97
  76
  </code></pre>
  
  <p>So far, everything seems to be fine, but the problem arises when I try to display the image. I used <code>matplotlib.pyplot.imshow</code> to display it and I get the image like:</p>
  
  <p><a href="https://i.stack.imgur.com/BGjHc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BGjHc.png" alt="Image red channel"></a></p>
  
  <p>Which is reasonable, because I choose red:</p>
  
  <pre><code> plt.imshow(temp[29,:,:,0])
  </code></pre>
  
  <p>But when I change it to different color channel, like this:</p>
  
  <pre><code>plt.imshow(temp[29,:,:,2])
  </code></pre>
  
  <p>I get the image like this:</p>
  
  <p><a href="https://i.stack.imgur.com/walXV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/walXV.png" alt="Image bug channel"></a></p>
  
  <p>My question is simple. What is happening here?</p>