[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"default.img" missing in octave-2.9.13
From: |
Henry F. Mollet |
Subject: |
"default.img" missing in octave-2.9.13 |
Date: |
Fri, 10 Aug 2007 11:03:28 -0700 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
Minor item and debating if I should even post this
but the "default.img" according to
## Load Bobbie Jo Richardson (Born 3/16/94)
needed in image.m (see code below)
is not available in octave-2.9.13 whereas it was available in Octave-2.1.71.
Therefore using "image" at octave prompt will not work in octave-2.9.13.
However, I'm not sure why providing a default image should be helpful when
using image.m and if it were not better if a warning were given that the use
of image.m requires at least one argument as per
octave-2.9.13:15> help image
-- Function File: image (IMG)
I have copied the default.img to where it is needed so it will work in
Octave-2.9.13 but am not convinced that it is helpful.
Second however: Whereas in octave-2.1.71 using sombrero at octave prompt
produces a warning (usage: sombrero (n)), octave-2.9.13 will accept sombrero
at the octave prompt because n=41 is assumed and then the sombrero is drawn.
Apparently an image is provided but not used in this case.
[/Applications/Octave.app/Contents/Resources/share/octave/2.9.13/imagelib]
-bash-2.05b 521$ ls
octave-sombrero.png
Henry
octave-2.9.13:14> image
error: loadimage: unable to find image file
error: evaluating if command near line 41, column 3
error: called from `loadimage' in file
`/Applications/Octave.app/Contents/Resources/share/octave/2.9.13/m/image/loa
dimage.m'
error: evaluating assignment expression near line 58, column 9
error: evaluating if command near line 56, column 3
error: called from `image' in file
`/Applications/Octave.app/Contents/Resources/share/octave/2.9.13/m/image/ima
ge.m'
[~] -bash-2.05b 501$ locate image.m
/Applications/Octave.app/Contents/Resources/share/octave/2.9.13/m/image/imag
e.m
/Applications/Octave.app/Contents/Resources/share/octave/2.9.13/m/image/load
image.m
/Applications/Octave.app/Contents/Resources/share/octave/2.9.13/m/image/save
image.m
/usr/local/share/octave/2.1.71/m/image/image.m
/usr/local/share/octave/2.1.71/m/image/loadimage.m
/usr/local/share/octave/2.1.71/m/image/saveimage.m
/usr/local/share/octave/2.1.71/site/m/octave-forge/MacOSX/image.m
[~] -bash-2.05b 503$ locate default.img
/usr/local/share/octave/2.1.71/imagelib/default.img
function image (x, y, img)
## Deprecated zoom. Remove this hunk of code if old zoom argument
## is outmoded.
if ((nargin == 2 && isscalar (y)) || nargin == 4)
warning ("image: zoom argument ignored -- use GUI features");
endif
if (nargin == 4)
nargin = 3;
endif
if (nargin == 2 && isscalar (y))
nargin = 1;
endif
if (nargin == 0)
## Load Bobbie Jo Richardson (Born 3/16/94)
img = loadimage ("default.img");
x = y = [];
elseif (nargin == 1)
img = x;
x = y = [];
elseif (nargin == 2 || nargin > 3)
print_usage ();
endif
tmp = __img__ (x, y, img);
if (nargout > 0)
h = tmp;
endif
Endfunction
- "default.img" missing in octave-2.9.13,
Henry F. Mollet <=