help-octave
[Top][All Lists]
Advanced

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

Re: first steps on octave


From: Søren Hauberg
Subject: Re: first steps on octave
Date: Mon, 18 Jun 2007 17:10:50 +0200
User-agent: Thunderbird 1.5.0.12 (X11/20070604)

Hi,
First of all v2.1.64 is quite old, so you might consider upgrading. But now to you problem...

'loadimage' can't load jpeg images. Basically I think it just handles Octaves own image format (so it isn't that useful for most purposes).

The problem with imread is a known bug that has been fixed in more recent versions of octave-forge. The fix is however quite simple. Just open the 'imread' file (in your case, '/home/gher/sirjacob/Lib/octave/image/imread.m') in a text editor and replace all appearances (I think there is only one of 'IMAGE_PATH' with 'IMAGEPATH' (just remove the underscore).

Hope that helps,
Søren

Damien SIRJACOBS skrev:
Hello,

I am discovering octave v2.1.64 (x86-64-suse-linux), just installed on the
sun cluster computer of our university by the informatic team.
As first simple check of its functionning, I have problems with opening of
files, even with the octave included function loadimage:

trying opening jpeg image with loadimage returns the following problem:

octave:11> loadimage('Noamneige.jpg');
error: load: /home/gher/sirjacob/Lib/octave/image/Noamneige.jpg:
inconsistent number of columns near line 2
error: load: unable to extract matrix size from file
`/home/gher/sirjacob/Lib/octave/image/Noamneige.jpg'
error: called from `loadimage' in file
`/usr/share/octave/2.1.64/m/image/loadimage.m'


trying opening jpeg image with the attached imread returns the following
problem:

octave:9> imread("Noamneige.jpg");
error: `IMAGE_PATH' undefined near line 45 column 23
error: evaluating argument list element number 1
error: evaluating assignment expression near line 45, column 8
error: called from `imread' in file
`/home/gher/sirjacob/Lib/octave/image/imread.m'

Could you please help me in finding the source of the problem?

Thanking you in advance,

Sincerely,

Damien Sirjacobs

Research Engineer - Project RECOLOUR-BELCOLOUR
GeoHydrodynamics and Environmental Research  - GHER
Department of Astrophysics, Geophysics and Oceanography
Liège University
Allée de la Physique, B5
B-4000 Sart-Tilman (Liège)
Belgium
phone: +32 4 366.36.48
fax: +32 4 366.23.55
email: address@hidden
http://modb.oce.ulg.ac.be/


------------------------------------------------------------------------

_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave


reply via email to

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