Imread()不起作用,但是cvLoadImage()起作用 [英] Imread() doesn't work but cvLoadImage() does
问题描述
我似乎无法使用imread(),而我的朋友建议使用cvLoadImage()的解决方法,有人知道为什么吗???我真的不想使用替代方法.
I can't seem to use imread() and my friend suggest a workaround using cvLoadImage(), do anybody know why??? I don't really want to use a workaround.
推荐答案
您使用的是哪个版本的OpenCV,请尝试同时在发布和调试模式下运行?这可能是一个错误.如果我没看错,您应该在2.3或更低的水平上?我以前也有这个错误.使用更新和更稳定的版本. 2.4.6包含大量错误修正.使用OpenCV2.3会出现问题.尽可能尝试使用最新,最稳定的版本.
What version of OpenCV are you using, try running in both release and debug mode? it could be a bug. If I am not wrong, you should be on 2.3 or below? I used to have this error too. Use a newer and more stable version. 2.4.6 which contains tons of bugfixes. Using OpenCV2.3 is asking for problems. Try using the most latest and most stable release when possible.
On why it happens, you can find out over here:OpenCV imread(filename) fails in debug mode when using release libraries
希望这会有所帮助.干杯
Hope this helps. Cheers
这篇关于Imread()不起作用,但是cvLoadImage()起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!