1 | initial version |
You should link with the debug libraries in debug (opencv_core245d.lib, opencv_...245d.lib, etc.) and the release version in release (opencv_core245.lib, etc.). Visual Studio is quite sensitive to that. For me, if I don't do like this (and their is no good reason to don't do this...) I get error on almost all input/output (reading images and files). Check in your code your image. I put the sample in c++ to help you through the conversion...
cv::Mat in = cv::imload( "F:\\chandung.png");
if( !im.data ) {
std::cerr << "Error: unable to load image!" << std::endl;
return -1;
}