Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

please add a check after reading:

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

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