title: OpenCV & Python - Image too big to display
body: <p>I have an image that is 6400 × 3200, while my screen is 1280 x 800. Therefore, the image needs to be resized for display only. I am using Python and OpenCV 2.4.9.
  According to <a href="http://docs.opencv.org/2.4/modules/highgui/doc/user_interface.html" rel="noreferrer" title="OpenCV Documentation">OpenCV Documentation</a>, </p>
  
  <blockquote>
    <p>If you need to show an image that is bigger than the screen resolution, you will need to call namedWindow("", WINDOW_NORMAL) before the imshow.</p>
  </blockquote>
  
  <p>That is what I am doing, but the image is not fitted to the screen, only a portion is shown because it's too big. I've also tried with cv2.resizeWindow, but it doesn't make any difference.</p>
  
  <pre><code>import cv2
  cv2.namedWindow("output", cv2.WINDOW_NORMAL)        # Create window with freedom of dimensions
  # cv2.resizeWindow("output", 400, 300)              # Resize window to specified dimensions
  im = cv2.imread("earth.jpg")                        # Read image
  cv2.imshow("output", im)                            # Show image
  cv2.waitKey(0)                                      # Display the image infinitely until any keypress
  </code></pre>