Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error when opencv running (visual studio c++)

I have an error with information as below: OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)size.p[0] && (unsigned)(i1DataType<_Tp>::channels) < (unsigned)(size.p[1]channels()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3) - 1))*4) & 15) == elemSize1()) in cv::Mat::at, file E:\EE_env\OpenCV\opencv\build\include\opencv2/core/mat.hpp, line 538 Does anyone know how to solve my problem. Thank you!

Error when opencv running (visual studio c++)

I have an error with information as below: below:

OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)size.p[0] && (unsigned)(i1DataType<_Tp>::channels) < (unsigned)(size.p[1]channels()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3) - 1))*4) & 15) == elemSize1()) in cv::Mat::at, file E:\EE_env\OpenCV\opencv\build\include\opencv2/core/mat.hpp, line 538 Does anyone know how to solve my problem. Thank you!