【发布时间】:2014-01-06 18:18:32
【问题描述】:
我试过用谷歌搜索它,似乎没有其他人遇到过这种错误。
我在 Ubuntu 12.04 上使用 Octave 3.6.1。我一直在使用 imread() 函数读取图像很长一段时间,但就在昨天它开始抛出这个错误:
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
有人知道发生了什么吗?如何解决这个问题?
非常感谢!
【问题讨论】:
-
您是否尝试过重新安装您正在使用的图像处理包或 octave?安装后是否开始出现此错误?
-
我尝试重新安装所有内容,但问题仍然存在。我相信它可能是在 Ubuntu 的每日更新之一之后开始的......
-
并且example.jpg等肯定在正确的文件夹中吗?你的脚本的路径和图片的路径是什么?
标签: image octave graphicsmagick