title: cvLoadImage for IplImage working, but cv::imread for cv::Mat not workign
body: <p>I am facing a weird issue where I am unable to read a basic image file from the filesystem using <code>cv::imread</code>. Hence the below results into imageInput having null data, with rows and cols set to 0.</p>
  
  <pre><code>cv::Mat imageInput =  cv::Mat();
  imageInput = cv::imread("abc.jpg",cv::IMREAD_COLOR);
  </code></pre>
  
  <p>Interestingly, after commenting out the above code, the below code is able to read the iamge:</p>
  
  <pre><code>//cv::Mat imageInput =  cv::Mat();
  //imageInput = cv::imread("abc.jpg",cv::IMREAD_COLOR);
  IplImage *rImg;
  rImg = cvLoadImage("abc.jpg", CV_LOAD_IMAGE_COLOR);
  </code></pre>
  
  <p><code>rImg</code> gets a width of 3296, and height of 2256 as expected.<br>
  I am clueless how this is possible. Please help.
  The build seems to be fine in both cases. I tried using both opencv-2.4.5 and opencv-2.4.6</p>