开发者

OpenCV assertion failed in LocateROI

I'm having a problem with an OpenCV program which 开发者_C百科compiles correctly but when it runs it aborts giving this error:

    OpenCV Error: Assertion failed (dims <= 2 && step[0] > 0) in locateROI, file /home/user/Desktop/HOME/src/OpenCV/modules/core/src/matrix.cpp, line 647
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/user/Desktop/HOME/src/OpenCV/modules/core/src/matrix.cpp:647: error: (-215) dims <= 2 && step[0] > 0 in function locateROI

Aborted

I'm using ubuntu with the latest OpenCV libraries but it gives me the same error also on Leopard with Eclipse.

The matrix.cpp file is inside my OpenCV source folder.

I'm not able to understand why I'm getting this error.

Can you help me, please?

Thanks a lot.


Without looking at the code seems that you have

not enough dimensions: dims <= 2

and of course the length of a single row is zero step[0] > 0

How are you creating the ROI ? Can you post a code Snip ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜