[Neuroimaging] writing a 1D python array to 3D Nifti file

Lorenzo Pini pini.lorenzo2 at gmail.com
Mon May 9 09:59:16 EDT 2022


Dear experts,

I uploaded a 3D nifti file with nibabel, transformed it into a 1D array and
performed some transformations. My final 1D array has size 902629 (MNI
vector space).

Now, I would like to convert this 1D array back to a 3D nifti image. Any
advice to perform this operation?

Thankx,
L
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/neuroimaging/attachments/20220509/77eba0cf/attachment.html>


More information about the Neuroimaging mailing list