eelbrain.load.besa.roi

eelbrain.load.besa.roi(path, adjust_index=True)[source]

Load a BESA-MN ROI saved in a *.mat file.

Parameters:
  • path (Path | str) – Path to the *.mat file containing the ROI.

  • adjust_index (bool) – Adjust the index for Python (Matlab indexes start with 1, Python indexes start with 0).

Returns:

roi – ROI source indexes.

Return type:

numpy.ndarray