[Neuroimaging] affine issue (?)

JB Poline jbpoline at gmail.com
Thu Jul 13 09:50:16 EDT 2017


Hey

Sounds like a 0 (python) 1 (matlab) issue (with 1 giving a 2mm
difference in the origin) ?
Would be useful to have the image somewhere

cheers
JB


On 13 July 2017 at 06:40, Christophe Pallier <christophe at pallier.org> wrote:
> Hello,
>
> I have an nii image (a contrast computed by SPM, in the MNI space),
> which, according to SPM, has the following affine:
>
>
>>> V.mat
> 2   0   0    -74
> 0   2   0   -108
> 0   0   2    -66
> 0   0   0    1
>
>
> However, the same image loaded with nibabel yields a different affine:
> [[   2.            0.            0.          -72.00000763]
>  [   0.            2.            0.         -106.        ]
>  [   0.            0.            2.          -64.        ]
>  [   0.            0.            0.            1.        ]]
>
> Any hint?
>
> --
> Christophe Pallier
>
> Personal web site: http://www.pallier.org
> Lab web site: http://www.unicog.org
> Email: christophe at pallier.org
> Tel: +33 (0) 1 69 08 79 34
>
> Address:
> INSERM-CEA Cognitive Neuroimaging Lab, Neurospin, bat 145,
> 91191 Gif-sur-Yvette Cedex, FRANCE
> _______________________________________________
> Neuroimaging mailing list
> Neuroimaging at python.org
> https://mail.python.org/mailman/listinfo/neuroimaging


More information about the Neuroimaging mailing list