[问题] 新手请教程式码问题

楼主: turn0316 (Ten)   2016-11-14 18:50:44
开发平台(Platform): (Ex: Win10, Linux, ...)
win7/Visual studio 2010
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
opencv
问题(Question):
小弟想利用opencv去推算镜头本身的位移还有速度,在网络上找到这段程式码,
编译可以过但是执行上还是会一直出错,希望能请教各位前辈
错误结果(Wrong Output):
会跳出一个错误的视窗:
Debug Assertion Failed!
Expression;invalid null pointer
For information on how your program can cause an assertion failure,see
the Visual C++ documentation on asserts.
输出栏:
The program '[3504]'opencvtest.exe: Native' has exited with code 3 (0x3)
程式码(Code):(请善用置底文网页, 记得排版)
http://blog.csdn.net/u011630458/article/details/46323319
作者: nh60211as   2016-11-14 23:16:00
试了VC++2015跟MingGW都可以正常执行,他的程式码里也没用ASSERT,你要不要贴你的程式码看看
作者: LPH66 (-6.2598534e+18f)   2016-11-15 01:17:00
这个错误讯息的意思是程式在执行到某一条 ASSERT() 时发现ASSERT 里声称的条件并未满足因此报错
楼主: turn0316 (Ten)   2016-11-15 13:49:00
我只有多include"stdafx.h" 没有改其他的东西,重建一个专案也是一样的问题
作者: dearsophia (今天真热)   2016-11-16 09:45:00
先用debug 一行一行执行,看哪一行有问题

Links booklink

Contact Us: admin [ a t ] ucptt.com