Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Feb 2 '16

berak gravatar image

please add a check after reading:

 if (a.empty())
 {
       cerr << "image was not read !" << endl;
       return 1;
 }
click to hide/show revision 2
No.2 Revision

please add a check after reading:

 if (a.empty())
 {
       cerr << "image was not read !" << endl;
       return 1;
 }

also, check your linker settings. make sure you're using debug opencv libs with debug build and release libs with release strictly