[Neuroimaging] Saving large NIfTI1 images using NiBabel

Valerie Hayot-Sasson valeriehayot at gmail.com
Fri Mar 3 13:33:40 EST 2017


Hi,

I’m trying to create a large empty matrix of size 3850 x 3025 x 3500, load it into NiBabel and save it as a NIfTI1 image. Loading the matrix into NiBabel works great, but I am unable to save it afterwards using nibabel.save(matrix, filename) as it uses too many resources. Is there another way to go about this (ex save the NIfTI header alone and then append data to it without requiring as much memory)?

Thank you,

Valerie  


More information about the Neuroimaging mailing list