help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ocatve reading image file


From: Andy Adler
Subject: Re: Ocatve reading image file
Date: Mon, 20 Mar 2006 14:19:04 -0500 (EST)

On Mon, 20 Mar 2006, Ben salah wrote:

>
> Hello,
> I have added the path of ImageMagick succesfully to the path of octave and
> when I write this command:
> system('echo $PATH')
> I have as result
> /usr/libexec/octave/2.1.42/site/exec/i686-pc-cygwin:/usr/libexec/octave/site/exec/i686-pc-cygwin:/usr/libexec/octave/2.1.42/exec/i686-pc-cygwin:/usr/bin:/bin:/cygdrive/c/texmf/miktex/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/usr/bin/ImageMagick-6.2.6/VisualMagick/bin:/cygdrive/c/Program
> Files/Microsoft Visual Studio/Common/Tools/WinNT:/cygdrive/c/Program
> Files/Microsoft Visual Studio/Common/MSDev98/Bin:/cygdrive/c/Program
> Files/Microsoft Visual Studio/Common/Tools:/cygdrive/c/Program
> Files/Microsoft Visual
> Studio/VC98/bin:/usr/bin/ImageMagick-6.2.6/VisualMagick/bin
> ans = 0
>
> but when I write: im= imread('im1.png') or  im= imread('im1.jpg') I have as
> a result:
> error: could not read file: C:/PROGRA~1/GNUOCT~1/tmp/oct-610ac4f0.4
> error: evaluating if command near line 178, column 4
> error: called from `imread' in file
> `/usr/share/octave/2.1.42/m/image/imread.m'
> error: evaluating assignment expression near line 11, column 3
> >>
>
> Does someone have any idea about that ?
> please help me

Try running

system("which convert")

the convert program should be the one in the ImageMagick directory.
If it is not (ie it is in a microsoft tools directory) then you're
not calling the right program. Try to move the imagemagick path
up in the list of paths.


--
Andy Adler <address@hidden> 1(613)562-5800x6218



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]