Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Error: Assertion failed (s >= 0) in setSize

Hi everyone,

I'm new user and I'm trying to execute my program that uses opencv. It compiles but during the exeution it appears this error.

OpenCV Error: Assertion failed (s >= 0) in setSize, file /<path_to_opencv>/OpenCV/OpenCV-2.4.3/modules/core/src/matrix.cpp, line 115 terminate called after throwing an instance of 'cv::Exception' what(): /<path_to_opencv>/OpenCV/OpenCV-2.4.3/modules/core/src/matrix.cpp:115: error: (-215) s >= 0 in function setSize

Can you help me? I've search through the internet for solutions but I didn't find anything related.