[Insight-users] itkResampleImageFilter

Elena Molina elenam85 at gmail.com
Tue Aug 25 09:31:52 EDT 2009


 Hi,

I am trying to use the itkResampleImageFilter. The input image is
(256x256x21) with
spacing values (0.898mm,0.989mm,7.19mm), origin(0mm,0mm,0mm) and
the orientation matrix is:

   0.9999    0.0053    0.0116    0.0000
   0.0000    0.9107   -0.4131    0.0000
   0.0127   -0.4131   -0.9106    0.0000
   0.0000    0.0000    0.0000    1.0000

The output image is (128x128x109) with spacing values
(2.67mm,2.67mm,2.03mm),
origin (0mm,0mm,0mm) and orientation matrix:

   1.0000    0.0000   0.0000     0.0000
   0.0000    1.0000   0.0000     0.0000
   0.0000    0.0000    1.0000    0.0000
   0.0000    0.0000    0.0000    1.0000

When I am applying the resample filter i don´t take account the orientation
How can I change the orientation of the input image to the output image?
I know that exists the method SetOutputDirection but I don´t know how can I
apply it.
Can you help me?

Thanks.
Elena
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090825/e69cc564/attachment.htm>


More information about the Insight-users mailing list