LocateROI 中 OpenCV 断言失败
我遇到了一个 OpenCV 程序的问题,该程序可以正确编译,但当它运行时,它会中止并给出以下错误:
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
我正在将 ubuntu 与最新的 OpenCV 库一起使用,但它在带有 Eclipse 的 Leopard 上也给了我同样的错误。
Matrix.cpp 文件位于我的 OpenCV 源文件夹内。
我无法理解为什么会出现此错误。
你能帮我吗?
多谢。
I'm having a problem with an OpenCV program which 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不看代码似乎你已经
您如何创造投资回报率?您可以发布代码片段吗?
Without looking at the code seems that you have
How are you creating the ROI ? Can you post a code Snip ?