[MINC-users] NIfTI to MINC revisited

Vladimir S. FONOV vladimir.fonov at gmail.com
Tue Aug 14 10:54:29 EDT 2012


Hello Simon,


itk_convert is pretty straight-forward, it uses ITK IO mechanisms to 
read and write whatever  is supported, trying to preserve as much as 
possible.

On 12-08-14 10:50 AM, Simon Eskildsen wrote:
> Hi Vlad,
>
> On Tue, Aug 14, 2012 at 3:04 PM, Vladimir S. FONOV
> <vladimir.fonov at gmail.com> wrote:
>> can you try itk_convert from minc-toolkit to perform conversion? (
>> /ipl/quarantine/experimental/mt/bin/itk_convert , source
>> /ipl/quarantine/experimental/mt/minc-toolkit-config.sh first)
>
> That seemed to work. The qform is preserved, though the code changes
> from 1 to 2...?
>
> $ diff a.hdr r.hdr
> 1c1
> < filename       anonymous.nii
> ---
>> filename       recovered.nii
> 14c14
> < time_units     s
> ---
>> time_units     Unknown
> 46,48c46,48
> < qform_name     Scanner Anat
> < qform_code     1
> < qto_xyz:1      -0.015369  0.078765  0.996775  -95.418961
> ---
>> qform_name     Aligned Anat
>> qform_code     2
>> qto_xyz:1      -0.015370  0.078765  0.996775  -95.418961
> 59c59
> < sto_xyz:3      0.000228  0.996893  -0.078771  -58.668182
> ---
>> sto_xyz:3      0.000228  0.996893  -0.078770  -58.668182
> 66c66
> < descrip        3T 3D GR\IR TR=2420ms/TE=3.7ms/FA=9deg 31-Mar-2011 16:25:15.378
> ---
>> descrip
>
>
> Thanks,
> Simon
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>


-- 
Best regards,

  Vladimir S. FONOV ~ vladimir.fonov <at> gmail.com


More information about the MINC-users mailing list