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.load_mni152_gm_mask(resolution=None, threshold=0.2, n_iter=2)¶
Load the MNI152 grey-matter mask. This function takes the grey-matter MNI152 template and threshold it, in order to obtain the corresponding grey-matter mask.
New in version 0.8.1.
- resolution: int, optional, Default = 2
If resolution is different from 1, the template loaded is first re-sampled with the specified resolution.
- thresholdfloat, optional
Values of the grey-matter MNI152 template above this threshold will be included. Default=0.2
- n_iter: int, optional, Default = 2
Number of repetitions of dilation and erosion steps performed in scipy.ndimage.binary_closing function.
- gm_mask_imgNifti1Image, image corresponding to the grey-matter mask.
for details about version of the MNI152 grey-matter template and related.
Refer to load_mni152_gm_template function for more information about the MNI152 grey-matter template.