title: Cropping image in numpy array
body: <p>I want to crop RGB images such that the upper half part of the image is removed. After cropping I want to concatenate the image to a numpy array (here images). But I get the following error <code>ValueError: all the input array dimensions except for the concatenation axis must match exactly</code>. I tried multiple things but I don't seem to have luck with any of my attempts.</p>
  
  <p>My code looks like</p>
  
  <pre><code>images = np.zeros((1, 32, 64, 3))
  image = get_image()  # has shape 1, 64, 64, 3
  # removing the first coordinate didn't change the error.
  images = np.concatenate([images, image[:, 32:63, :, :]], axis=0)  
  </code></pre>
  
  <p>EDIT: The following modifications in <code>image[:, 32:63, :, :]</code> did not resolve the problem</p>
  
  <p>a) [:, 32:63, :, :] -> [32:63, :, :]</p>
  
  <p>b) [:, 32:63, :, :] -> [:][32:63][:][:]</p>