我试过用Google搜索它,似乎没有其他人有这种错误。imread()在Octave上停止工作
我在Ubuntu 12.04上使用Octave 3.6.1。我一直在使用imread()funcion读了一段时间的图像,但就在昨天就开始抛出这个错误:
octave:5> I = imread('example.jpg');
error: imread: invalid image file: Magick++ exception: Magick: Unable to open file (tures/example.jpg) reported by coders/jpeg.c:955 (ReadJPEGImage)
error: called from:
error: /usr/share/octave/3.6.1/m/image/imread.m at line 74, column 7
如果我试图读取PNG,我收到了类似的错误:
octave:5> I = imread('example.png');
error: imread: invalid image file: Magick++ exception: Magick: Unable to open file (tures/example.png) reported by coders/png.c:2790 (ReadPNGImage)
error: called from:
error: /usr/share/octave/3.6.1/m/image/imread.m at line 74, column 7
有人知道发生了什么吗?如何解决这个问题?
非常感谢!
你试过重新安装你使用的图像处理软件包还是八度?安装了一些东西后,这个错误是否开始出现? – Dan
我试图重新安装一切,问题依然存在。我相信它可能是在Ubuntu的每日更新之后开始的...... – flaviomax
而且是example.jpg等肯定在正确的文件夹中?你的脚本的路径和图像的路径是什么? – Dan