对于我使用的任何允许类型的Mat类型,当我尝试进行一些赋值或写入流等操作时,都会出现以下错误。这在MSVC++2010 Express编译器上发生,而在gnu g++编译器上则不会发生。
错误示例:
两个错误同时发生: 在弹出窗口中。
有什么建议吗?
错误示例:
Mat M = Mat::zeros( image.size(), DataType<int>::type );
std::cout << M.at<int>( 0,0 ) << std::endl; // error
// OR
int x = M.at<int>( 0,0 ); // error
两个错误同时发生: 在弹出窗口中。
Unhandled exception at <some hex adress> in test.exe:Microsoft C++ exception: cv:xception at memory location <some hex adress>
并在控制台窗口上显示
OpenCV Error: Assertion failed ... \mat.hpp, line 537
有什么建议吗?