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:
labelLabel

The ROI to consider.

srcSourceSpaces

The source space that defines all candidate source locations.

Returns:
maskarray, shape (n_sources,)

A vector with one logical value for each source in src: True if it belongs to the ROI, False otherwise.