mask
mask(lr, space='onavg-ico32', legacy=False, **kwargs)Standard cortical mask.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| lr | str | Hemisphere, either ‘l’ or ‘r’ or ‘lr’. | required |
| space | str | Surface space. | 'onavg-ico32' |
| legacy | bool | Whether to load the legacy version of the mask, e.g., “fsaverage” or “32k_fs_LR”, instead of the group-based cortical mask. | False |
Returns
| Name | Type | Description |
|---|---|---|
| mask | ndarray | Mask of the cortical surface. Shape (n_vertices,). |