Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you're wrong about cv::imread() throwing an exception, ever, it won''t happen.

instead, please check for src.empty()

you're wrong about cv::imread() throwing an exception, ever, it won''t happen.

instead, please check for src.empty() like:

 if (src.empty()) {
     // fail, bail out !
     return -1; 
}

you're wrong about cv::imread() throwing an exception, ever, it won''t won't ever happen.

instead, please check for src.empty() like:

 if (src.empty()) {
     // fail, bail out !
     return -1; 
}

you're wrong about cv::imread() throwing an exception, ever, it won't ever happen.

instead, please check for src.empty() like:

 if (src.empty()) {
     // fail, bail out !
     return -1; 
}