[Insight-users] Nifti <--> MHA convert

Paolo Zaffino p.zaffino at yahoo.it
Wed Jan 25 09:24:28 EST 2012


Ok, now it's clear.
Thank you very much.
Best regards.
Paolo


Il 25/01/2012 09:51, Dženan Zukić ha scritto:
> 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 
> <mailto: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 <http://www.kitware.com>
>
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
>
>     Kitware offers ITK Training Courses, for more information visit:
>     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
>
>     Follow this link to subscribe/unsubscribe:
>     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/79294c67/attachment-0001.htm>


More information about the Insight-users mailing list