9.7.1. Negating an image with math_img¶
The goal of this example is to illustrate the use of the function
nilearn.image.math_img on T-maps.
We compute a negative image by multiplying its voxel values with -1.
from nilearn import datasets, plotting, image
Retrieve the data: the localizer dataset with contrast maps.
Multiply voxel values by -1.
Total running time of the script: ( 0 minutes 5.882 seconds)
Estimated memory usage: 9 MB