AW: [Insight-users] How to get one 2d image from 3d volume data?
jiang
jiang at TI . Uni-Trier . DE
Fri, 5 Dec 2003 17:01:10 +0100
Hi Luis,
Thank you very much. It is exactly what I want.
Best,
Chunyan
-----Ursprungliche Nachricht-----
Von: Luis Ibanez [mailto:luis . ibanez at kitware . com]
Gesendet: Freitag, 5. Dezember 2003 16:41
An: jiang
Cc: ITK
Betreff: Re: [Insight-users] How to get one 2d image from 3d volume
data?
Hi Chunyan,
Please look at the itk::ExtractImageFilter
http://www . itk . org/Insight/Doxygen/html/classitk_1_1ExtractImageFilter . html
an example on how to use this filter is available at
Insight/Examples/IO/
ImageReadExtractWrite.cxx
You can actually use this demo application as a command
line tool for extracting slices from a volume.
In your case, you are probably more interested in
copy/pasting the core code from the example into your
application.
Regards,
Luis
-----------------------------------------------
jiang wrote:
> Dear ITK-users,
> I read a series of 2d image files to form a 3d volume. Now I want to get
one
> slice of those images from the volume pointer. How should I do?
> The type of volume is:
> typedef itk::Image<PixelType, 3> ImageNDType;
> ImageNDType::Pointer volume;
>
> The 2d image type is:
> typedef itk::Image<PixelType, 2> ImageType;
> ImageType::Pointer OnePiece.
>
>
> Thank you very much!
>
>
> Chunyan
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>