title: Resizing RGB image with cv2 numpy and Python 2.7
body: <p>I want to resize an RGB image using Python 2.7. I tried using cv2.resize funcion, but it always returns a single channel image:</p>
  
  <pre><code>(Pdb) x = cv2.imread('image.jpg')
  (Pdb) x.shape
  (50, 50, 3)
  (Pdb) x = cv2.resize(x, (40, 40)) 
  (Pdb) x.shape
  (40, 40)
  </code></pre>
  
  <p>I would like the final output of x.shape to be (40, 40, 3).</p>
  
  <p>Is there a more pythonic way to resize the RGB image other than looping through the three channels and resizing each one separately?</p>