Image functions no longer return images

James Sherman Jr. shermanj at umd.edu
Fri Feb 1 00:11:26 CST 2008


On Jan 30, 2008 6:28 PM, J Heeris <jason.heeris at gmail.com> wrote:
>
>
>
>
> Søren Hauberg wrote:
> >
> >
> > ons, 30 01 2008 kl. 04:32 -0800, skrev J Heeris:
> >> Using octave 3.0.0 with package "image" 1.0.4, on Debian GNU/Linux
> >> (Lenny,
> >> 2.6.23 custom kernel).
> >>
> >> I notice that functions such as imshow and image no longer return image
> >> matrices, but just floating point values.
> > I'm confused. Have 'imshow' ever returned an image? I mean, why would
> > it?
> >
> > Søren
> >
> > _______________________________________________
> > Help-octave mailing list
> > Help-octave at octave.org
> > https://www.cae.wisc.edu/mailman/listinfo/help-octave
> >
> >
>
> Sorry, I meant "imagesc".
>
> If these functions return image handles, how do I use them with, say,
> "imwrite"? The documentation for "imwrite" doesn't seem to have changed to
> detail this. Now I just get "error: expecting integer index, found
> -6.139061" when trying to use the results of "imagesc" with "imwrite".

I don't have octave available currently, but I believe the function
you're looking for is either save or saveas (can't remember which one
it is).

James



More information about the Help-octave mailing list