Plot the head model inside MRI to check anatomical alignmentΒΆ

MNE-HCP facilitates source level analysis by supporting linkage between MRT/anatomy files and the MEG data. Here, inspect the head model that is used to compute the BEM solution.

# Author: Jona Sassenhagen
#         Denis A. Engemann
# License: BSD 3 clause

import os.path as op

from mne.viz import plot_bem
# from mne.bem import make_watershed_bem

storage_dir = op.expanduser('~/mne-hcp-data')
subject = '105923'
subjects_dir = storage_dir + '/hcp-subjects'

We assume that all directory structures are set up. Checkout hcp.make_mne_anatomy() to achieve this necessary step. See also Extract essential anatomy information.

plot_bem(subject=subject, subjects_dir=subjects_dir)
../_images/sphx_glr_plot_bem_001.png

Out:

Using surface: /Users/dengemann/mne-hcp-data/hcp-subjects/105923/bem/inner_skull.surf
Triangle file:  nvert = 5000 ntri = 9996

Total running time of the script: ( 0 minutes 1.461 seconds)

Generated by Sphinx-Gallery