[Insight-users] Re: Read a 2D image from 3D
Luis Ibanez
luis.ibanez at kitware.com
Wed, 25 Feb 2004 17:07:41 -0500
Hi Sandhya,
The easiest source of 3D data for testing
ITK examples and demos are listed in the
"Data" link of www.itk.org:
http://www.itk.org/HTML/Data.htm
In particular you may want to take the
datasets from
ftp://public.kitware.com/pub/itk/Data/BrainWeb/
They were taken from the BrainWeb project
and packaged as MetaImage files.
Please let us know if you have any
difficulty getting this data.
Thanks
Luis
------------------------
Thimmaiah, Sandhya wrote:
> Hi Luis,
> sorry for asking so many questions..but I have a question..where can I get
> the data of the selected image..that is for the ImageReadExtract what can I
> give as an input image..if I am not wrong the slice number is the slice i
> have selected in the UI and what about the the input image...Thank you
>
> -----Original Message-----
> From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
> Sent: Sunday, February 22, 2004 8:34 AM
> To: Thimmaiah, Sandhya
> Cc: Insight-users at itk.org
> Subject: Re: Read a 2D image from 3D
>
>
>
> 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
>>
>
>
>
>