title: OpenCV Error: Assertion failed (size.width>0 && size.height>0) simple code
body: <p>I am trying to run this simple OpenCV program, but i got this error: </p>
  
  <pre><code>OpenCV Error: Assertion failed (size.width&gt;0 &amp;&amp; size.height&gt;0) in imshow, file .../opencv/modules/highgui/src/window.cpp, line 276
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;opencv2/opencv.hpp&gt;
  
  using namespace std;
  
  int main()
  {
      cout &lt;&lt; "Hello World!" &lt;&lt; endl;
  
      cv::Mat inputImage = cv::imread("/home/beniz1.jpg");
      cv::imshow("Display Image", inputImage);
  
      return 0;
  }
  </code></pre>
  
  <p>What's the cause of this error?</p>