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 The ROI to consider.
- 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: True if it belongs to the ROI, False otherwise.
- mask