Comparing the means of 2 images#
The goal of this example is to illustrate the use of the function
nilearn.image.math_img with a list of images as input.
We compare the means of 2 resting state 4D images. The mean of the images
could have been computed with nilearn
Fetching 2 subject movie watching brain development fMRI datasets.
Print basic information on the adhd subjects resting state datasets.
Subject 1 resting state dataset at: /home/runner/work/nilearn/nilearn/nilearn_data/development_fmri/development_fmri/sub-pixar123_task-pixar_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
Subject 2 resting state dataset at: /home/runner/work/nilearn/nilearn/nilearn_data/development_fmri/development_fmri/sub-pixar001_task-pixar_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
Comparing the means of the 2 movie watching datasets.
Total running time of the script: (0 minutes 2.922 seconds)
Estimated memory usage: 766 MB