[Insight-users] Nifti <--> MHA convert
Dženan Zukić
dzenanz at gmail.com
Wed Jan 25 03:51:57 EST 2012
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
const unsigned int Dimension = 2; //put 3 here
typedef short PixelType; //keep or put unsigned char or whatever
Compile the example in release mode, and you can use it a command line
conversion utility. It supports both MHA and NII.GZ formats.
On Tue, Jan 24, 2012 at 19:39, Paolo Zaffino <p.zaffino at yahoo.it> wrote:
> Dear ITK experts,
> I need to convert an nii.gz file into a mha file (and viceversa).
> 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
> positive direction).
> Does ITK consider these aspects? What function can I use to do this?
> Thank you very much.
> Regards.
> Paolo
> ______________________________**_______
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/**opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/**products/protraining.html<http://www.kitware.com/products/protraining.html>
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_**FAQ <http://www.itk.org/Wiki/ITK_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/**listinfo/insight-users<http://www.itk.org/mailman/listinfo/insight-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120125/7df3df71/attachment.htm>
More information about the Insight-users
mailing list