<font><font face="verdana,sans-serif">ITK honers those orientations. There is an example called ImageReadWrite, which just converts between file formats. It is meant for 2D images, so you need to change<br>  const   unsigned int        Dimension = 2; //put 3 here<br>

  typedef short      PixelType; //keep or put unsigned char or whatever<br><br>Compile the example in release mode, and you can use it a command line conversion utility. It supports both MHA and NII.GZ formats.<br></font></font><br>

<div class="gmail_quote">On Tue, Jan 24, 2012 at 19:39, Paolo Zaffino <span dir="ltr">&lt;<a href="mailto:p.zaffino@yahoo.it">p.zaffino@yahoo.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear ITK experts,<br>
I need to convert an nii.gz file into a mha file (and viceversa).<br>
I know that the nifti format set in a different way the voxel coordinates (it includes the offset and the positive or negative sign in order to set the<br>
positive direction).<br>
Does ITK consider these aspects? What function can I use to do this?<br>
Thank you very much.<br>
Regards.<br>
Paolo<br>
______________________________<u></u>_______<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/<u></u>products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/<u></u>listinfo/insight-users</a><br>
</blockquote></div><br>