2017-02-18 1 views
0

Je dois lire un fichier myFile.bmp dans Octave mais cela ne fonctionne pas.Octave imread fichier bmp

J'ai:

  • Ubuntu 15.04
  • 3.8.2
  • d'octave
  • ImageMagick 8: 6.8.9.9-5

Quand je lance imread('myFile.bmp'), je reçois ceci:

octave:10> imread ("myFile.bmp") 
error: imread: invalid image file: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh 
error: called from: 
error: /usr/share/octave/3.8.2/m/image/private/__imread__.m at line 181, column 7 
error: /usr/share/octave/3.8.2/m/image/private/imageIO.m at line 66, column 26 
error: /usr/share/octave/3.8.2/m/image/imread.m at line 107, column 30 

Lorsque je cours imread('myFile.bmp', 'Format', 'bmp'), j'ai la même erreur.

Répondre

1

Si vous avez tout installé depuis les dépôts Ubuntu, vous êtes probablement affecté par un problème de packaging Ubuntu. Il a été décrit dans comment #6 of Ubuntu bug #1372202.

Comme Ubuntu 15.04 a déjà atteint end of life, il ne le résoudra probablement pas. Vous pouvez:

  1. mise à niveau Ubuntu
  2. build Octave de la source vous