[Insight-users] Re: Read a 2D image from 3D

Luis Ibanez luis.ibanez at kitware.com
Sun, 22 Feb 2004 08:33:36 -0500


Hi Sandhya,

If you want to extract a slice from a volume
and use the slice as a 2D image instead of
a 3D one, you can use the ExtractImageFilter.

Please look at the example:

    Insight/Examples/IO
        ImageReadExtractWrite.cxx

It illustrates how to do this.


Regards,


    Luis


------------------------------
Thimmaiah, Sandhya wrote:

> Hi Luis,
> I am reading a series of DICOM images using ImageSeriesReader and I am
> displaying in my interface..Once I display I want to select one slice and
> read it as a 3D. To be clear when I am reading series of images the
> dimension of the image is 3D..i want to select a slice from the UI and give
> that slice as an input for segmentation, since for segmentation the
> dimension is 2D I am having problem getting the input..is there any way that
> I can achieve this. I would really appreciate if you can give any
> suggestions. Thank you
>