title: Opencv imread can't read images
body: <p>I use imread() function to read tif image, but the returned Mat is empty.</p>
  
  <pre><code>vector&lt;Mat&gt; imgs;
  int num = 10;
  for (int i = 1; i &lt;= num; i++) {
      char buffer_s[200];
      sprintf(buffer_s, "img%02d.jpg",i);
      Mat buffer_img = imread(buffer_s);
      if (buffer_img.empty()) {
          cout &lt;&lt; buffer_s &lt;&lt; " read incorrectly" &lt;&lt; endl;
          return -1;
      }
      imgs.push_back(buffer_img);
  
  }
  </code></pre>
  
  <p>The images to be read are under the project directory. I also tried to use the absolute path but the outcome was the same. Here is the debug interface:<a href="https://i.stack.imgur.com/10IHY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/10IHY.jpg" alt="enter image description here"></a></p>
  
  <p>I can't figure it out.</p>