我試過用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