This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
- nilearn.datasets.fetch_icbm152_brain_gm_mask(data_dir=None, threshold=0.2, resume=True, n_iter=2, verbose=1)¶
Downloads ICBM152 template first, then loads the ‘gm’ mask.
New in version 0.2.5.
Path where data should be downloaded. By default, files are downloaded in home directory.
- thresholdfloat, optional
Values of the ICBM152 grey-matter template above this threshold will be included. Default=0.2
Whether to resume download of a partly-downloaded file. Default=True.
- n_iter: int, optional, Default = 2
Number of repetitions of dilation and erosion steps performed in scipy.ndimage.binary_closing function.
New in version 0.8.1.
Verbosity level (0 means no message). Default=1.
- gm_mask_imgNifti1Image, image corresponding to the brain grey matter
from ICBM152 template.
This function relies on ICBM152 templates where we particularly pick grey matter template and threshold the template at .2 to take one fifth of the values. Then, do a bit post processing such as binary closing operation to more compact mask image.
It is advised to check the mask image with your own data processing.