help-octave
[Top][All Lists]
Advanced

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

Re: Image functions no longer return images


From: Michael Goffioul
Subject: Re: Image functions no longer return images
Date: Fri, 1 Feb 2008 10:30:00 +0100

On Thu, Jan 31, 2008 at 12:28 AM, J Heeris <address@hidden> wrote:
> 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 have the impression you're mixing different stuffs. "imagesc" is for
displaying
an image, "imwrite" is for saving an image into a specified format.
Both functions
take the same kind of input: an image (usually represented by a matrix). The
handle returned by imagesc is for manipulating the *displayed* image
(by using "set(handle, ...)"). If you want to retrieve the image data from a
handle (provided the handle points to an image graphics object), you can
still use "get(handle,...)".

Michael.


reply via email to

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