Hi all, I’m trying to visualize timeseries data on Nilearn’s glass brain. I’m using a preprocessed 4D NIFTI file which contains ~400 volumes. I’m planning to save each volume as its own individual image, after which I’ll stitch together all of the volumes to create a .gif type of animation.
However, this is what I end up with (this is just one sample volume):
I was expecting it to look more like the images here.
All of the volumes look like this. I’m not sure why I’m not getting bigger swaths of activity (which I do see in FSLeyes). Instead, I’m getting little ‘dots’ of activity. For further context, I’m currently using the EPI file that has not been registered/transformed to standard MNI space (this transformation is currently running). I’m simply using the subject-space image for testing purposes for now.
Here’s my code:
nifti = ‘path/to/preprocessed_4D_EPI’
for volume in image.iter_img(nifti):
Thank you very much in advance for your help!