[Insight-users] Re: a question about Resample

Luis Ibanez luis.ibanez at kitware.com
Tue, 16 Mar 2004 09:58:18 -0500


Hi Yongming,

One easy way to go is to use the ResampleImageFilter
followed by the ExtractImageFilter.

In the ResampleImageFilter you ask for computing as
output a 3D image with thickness of 1 slice. Then in
the ExtractImageFilter you reduce this 1-slice 3D image
to a 2D image. This last filter allows you to reduce the
dimensionality of the image.

http://www.itk.org/Insight/Doxygen/html/classitk_1_1ExtractImageFilter.html



You will find examples on the use of ExtractImageFilter
in:

         Insight/Examples/IO.


   Regards,



     Luis


------------------
Zhao Yongming wrote:

> Hi Luis,
> ITK has a class itk::ResampleImageFilter to resample a
> image. and now i want to resample a 3-dimension image
> to get a specific 2-dimension plane. But i don't know
> how to define the input and output dimension. Since
> the class AffineTransform requires that input and
> output images have the same number of dimensions.
> And the ITK Software Guide doesn't tell me how to do
> that either.
> 
> Thank you! 
>    Yongming
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam
> http://mail.yahoo.com
>