Imread()不起作用,但是cvLoadImage()起作用 [英] Imread() doesn't work but cvLoadImage() does

查看:144
本文介绍了Imread()不起作用,但是cvLoadImage()起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆