|
From: | Søren Hauberg |
Subject: | Re: first steps on octave |
Date: | Tue, 19 Jun 2007 09:35:10 +0200 |
User-agent: | Thunderbird 1.5.0.12 (X11/20070604) |
Søren Damien SIRJACOBS skrev:
Hi, Yes you're right I downloaded imread from the octave website, to try running an octave function just to check octave works well before trying to find why my matlab routines do not work. Damien -----Message d'origine----- De : Søren Hauberg [mailto:address@hidden Envoyé : lundi 18 juin 2007 18:27 À : address@hidden Cc : octave help Objet : Re: first steps on octave Hi, How did you get 'imread.m'? It seems to me that you're using an older version of Octave with a new version of imread? But I'm guessing here... Søren Damien SIRJACOBS skrev:Hi, THanks for your answer! Yes I hope the informatic center will upgrade octave, I asked them. Meanwhile I tried your suggestion. Indeed, modifying to IMAGEPATH changed the reaction of octave to: octave:11> imread("Noamneige.jpg"); sh: line 1: identify: command not found error: `regexp' undefined near line 155 column 7 error: evaluating assignment expression near line 155, column 5 error: called from `imread:re_grab' in file `/home/gher/sirjacob/Lib/octave/image/imread.m' error: evaluating assignment expression near line 75, column 11 error: called from `imread' in file `/home/gher/sirjacob/Lib/octave/image/imread.m' as often, behind a problem, some others.. any clue? Thanks again Damien -----Message d'origine----- De : Søren Hauberg [mailto:address@hidden Envoyé : lundi 18 juin 2007 17:11 À : address@hidden Cc : address@hidden Objet : Re: first steps on octave 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 onthesun cluster computer of our university by the informatic team. As first simple check of its functionning, I have problems with openingoffiles, 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
[Prev in Thread] | Current Thread | [Next in Thread] |