mnefun.get_atlas_roi_mask

mnefun.get_atlas_roi_mask(stc, roi, atlas='IXI', atlas_subject=None, subjects_dir=None)

Get ROI mask for a given subject/atlas.

Parameters:
stcinstance of mne.SourceEstimate or mne.VectorSourceEstimate

The source estimate.

roistr

The ROI to obtain a mask for.

atlasstr

The atlas to use. Must be “IXI” or “LBPA40”.

atlas_subjectstr | None

Atlas subject to process. Must be one of the (unwarped) subjects “ANTS3-0Months3T”, “ANTS6-0Months3T”, or “ANTS12-0Months3T”. If None, it will be inferred from the number of vertices.

Returns:
maskndarray, shape (n_vertices,)

The mask.