help-octave
[Top][All Lists]
Advanced

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

Re: Output a 3D array/image


From: Jordi Gutiérrez Hermoso
Subject: Re: Output a 3D array/image
Date: Mon, 12 Jul 2010 15:10:32 -0500

On 11 July 2010 16:20, Li-Ping Yuan <address@hidden> wrote:
> I have successfully read in a 3D image (200x200x200) as
>
>           I3D=imread("c_in.tif", 1:200);
>
> However, I couldn't find a way to save such 3D image to a file.  Your help
> is highly appreciated.  Other file format would be OK, too.  Or even "raw"
> form.

If i3D is an NDarray (3Darray), you should be able to do

     save the_file I3D

but I'm not sure this is what you want. It will save it as a text
file. You may want a binary save instead, so

     save -binary the_file I3D

instead, but note that this is Octave's binary format. If you want to
save it as an image, you should use "imwrite" instead.



reply via email to

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