roiextract.utils.get_label_mask#
- roiextract.utils.get_label_mask(label, src)#
Get a binary mask for vertices of the provided source space that belong to the specified ROI.
- Parameters:
- label
Label|BiHemiLabel The FreeSurfer label defining the ROI.
- src
SourceSpaces The source space that defines all candidate source locations.
- label
- Returns:
- mask
array, shape (n_sources,) A vector with one logical value for each source in
src:Trueif it belongs to the ROI,Falseotherwise.
- mask