Right, I keep forgetting how forgiving octave is.
However, the sequence works on my machine with no error
statements. - running binary octave 2.1.50a-inst.exe on
Win98
- Robert -
On Sat, 26 Mar 2005 16:07:00 +0100
Søren Hauberg <address@hidden> wrote:
Hi
It wasn't a typo, but from what I understand the comma
isn't necesary. The problem is related to the call to
ind2gray.
Thanks,
Søren
Macy skrev:
May just be a typo on your email, but you have no
comma..
[indexed map] = gray2ind(I);
should be..
[indexed, map] = gray2ind(I);
- Robert -
On Sat, 26 Mar 2005 15:15:58 +0100
Søren Hauberg <address@hidden> wrote:
Hi
Shouldn't I be able to do the following? ('I' as
512x512
image)
[indexed map] = gray2ind(I);
G = ind2gray(indexed, map);
If I do the above I get this error:
error: invalid vector index = 15436
error: evaluating argument list element number 1
error: evaluating assignment expression near line 49,
column 5
error: called from `ind2gray' in file
`/usr/share/octave/2.1.64/m/image/ind2gray.m'
error: evaluating assignment expression near line 48,
column 3
But perhaps I'm misunderstanding the functions?
/Søren
-------------------------------------------------------------
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
-------------------------------------------------------------