Hi,<br><br>I am trying to use the itkResampleImageFilter. The input image is (256x256x21) with<br>spacing values (0.898mm,0.989mm,7.19mm), origin(0mm,0mm,0mm) and <br>the orientation matrix is:<br><br>   0.9999    0.0053    0.0116    0.0000<br>
   0.0000    0.9107   -0.4131    0.0000<br>   0.0127   -0.4131   -0.9106    0.0000<br>   0.0000    0.0000    0.0000    1.0000<br><br>The output image is (128x128x109) with spacing values (2.67mm,2.67mm,2.03mm),<br>origin (0mm,0mm,0mm) and orientation matrix:<br>
<br>   1.0000    0.0000   0.0000     0.0000<br>
   0.0000    1.0000   0.0000     0.0000<br>
   0.0000    0.0000    1.0000    0.0000<br>
   0.0000    0.0000    0.0000    1.0000<br><br>When I am applying the resample filter i donīt take account the orientation <br>How can I change the orientation of the input image to the output image? <br>I know that exists the method SetOutputDirection but I donīt know how can I apply it.<br>
Can you help me?<br><br>Thanks.<br>Elena <br><br><br>