1 | initial version |
please add a check after reading:
if (a.empty())
{
cerr << "image was not read !" << endl;
return 1;
}
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