.. _sphx_glr_auto_examples_plot_bem.py: ============================================================ 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. .. code-block:: python # 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 :func:`hcp.make_mne_anatomy` to achieve this necessary step. See also :ref:`tut_make_anatomy`. .. code-block:: python plot_bem(subject=subject, subjects_dir=subjects_dir) .. image:: /auto_examples/images/sphx_glr_plot_bem_001.png :align: center .. rst-class:: sphx-glr-script-out 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) .. container:: sphx-glr-download :download:`Download Python source code: plot_bem.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_bem.ipynb ` .. rst-class:: sphx-glr-signature `Generated by Sphinx-Gallery `_