[pymvpa] x offset with pynifti niftiimage

Michael Hanke michael.hanke at gmail.com
Wed Nov 25 22:05:57 UTC 2009


Hi,

On Wed, Nov 25, 2009 at 02:54:08PM -0700, Jesse Brown wrote:
> Hi all,
> 
> I'm using pynifti's NiftiImage to write a nifti file from a NumPy array. I
> am able to write nifti files fine from ndarrays ordered z,y,x. The problem
> is, when I display them in fslview, they're offset on the x axis - the brain
> is split in half (when displayed with the MNI152 standard space brain). This
> happens whether I write the array without any header updating or if I match
> the headers between the image I'm creating and the MNI152 standard space
> image using UpdateFromDict. My best guess is that something with the sform
> is off but I'm not certain. Any suggestions?

Are you running that on Windows by any chance? If that is the case: Are
your writing compressed files? If the is the case: Try uncompressed ones.

Otherwise, could you send a screenshot of what is going on, and maybe a
dump of the header of the broken nifti file?


Michael

-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://mih.voxindeserto.de



More information about the Pkg-ExpPsy-PyMVPA mailing list