[Insight-users] How to write a volume to file/files?
Luis Ibanez
luis.ibanez at kitware.com
Sun Feb 13 02:07:43 EST 2005
Hi Changhua,
PNG can only manage 2D images.
If you are reading 2 slices, you have now a volume.
Please write the image using a fileformat that supports 3D images.
You will find a list of such formats in the FAQ.
If you really want to get PNGs you may also use the
ImageSeriesWriter. You will find examples for it
in the same Insight/Examples/IO directory.'
Regards,
Luis
---------------------
Changhua Wu wrote:
> Hi,
>
> I am using the example program
> "ImageSeriesReadWrite.cxx" to read a volume and write
> the output. This program requires three parameter. It
> can read a volume (consists of two slices)
> successfully, however it can't save to volume to the
> output file (output.png). The error message I got is
> "abort".
>
> Anyone know what is reason? Is the output file name I
> gave wrong? How to write a voluem into file/files
> anyway?
>
> Changhua Wu
>
>
>
> __________________________________
> Do you Yahoo!?
> Meet the all-new My Yahoo! - Try it today!
> http://my.yahoo.com
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list