title: OpenCV resize fails on large image with "error: (-215) ssize.area() > 0 in function cv::resize"
body: <p>I'm using OpenCV 3.0.0 and Python 3.4.3 to process a very large RGB image (107162,79553,3). While I'm trying to resize it using the following code:</p>
  <pre><code>import cv2
  image = cv2.resize(img, (0,0), fx=0.5, fy=0.5, interpolation=cv2.INTER_AREA)
  </code></pre>
  <p>I had this error message coming up:</p>
  <blockquote>
  <p>cv2.error: C:\opencv-3.0.0\source\modules\imgproc\src\imgwarp.cpp:3208: error: (-215) ssize.area() &gt; 0 in function cv::resize</p>
  </blockquote>
  <p>I'm certain there is image content in the image array because I can save them into small tiles in jpg format. When I try to resize just a small part of the image, there is no problem and I end up with correctly resized image. (Taking a rather big chunk (50000,50000,3) still won't work, but it will work on a (10000,10000,3) chunk)</p>
  <p>What could cause this problem and how can I solve this?</p>