[Insight-users] Read 2D .png image series and write volume
Luis Ibanez
luis.ibanez at kitware.com
Sat Feb 19 17:12:59 EST 2011
Hi John,
You can generate a series of PNG images
by running the example:
ITK/Examples/IO/
ImageReadImageSeriesWrite.cxx
for example
ImageReadImageSeriesWrite \
HeadMRVolume.mha outputdirectory/myimages png
this will result in a set of images:
png000.png ... to ... png041.png
in that "outputdirectory".
The image HeadMRVolume.mha is in the directory:
ITK/Testing/Data/Input
Then you could use those png images as input to your
program, to reconstitute the original 3D image.
If you need an example on how to read an image series
you could look at:
ITK/Examples/IO/
ImageSeriesReadWrite.cxx
ImageSeriesReadWrite2.cxx
Luis
--------------------------------------------
On Fri, Feb 18, 2011 at 7:05 AM, john smith <mkitkinsightuser at gmail.com> wrote:
> Hello,
>
> I want to read 2D .png image series and write the volume. I wrote the code
> and I built it without any failure. But I cannot find to use any exaples of
> image .png series, to see my created volume. Does anybody knows where I can
> find them?
>
> Thanks
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list