orphan: |
---|
The watershed algorithm [Segonne et al., 2004] is part of the FreeSurfer software. The name of the program is mri_watershed. Its use in the MNE environment is facilitated by the script :ref:`mne watershed_bem`.
After mne watershed_bem has completed, the following files appear in the subject's :file:`bem/watershed` directory:
All of these surfaces are in the FreeSurfer format. In addition, there will be a file called :file:`bem/watershed/ws.mgz` which contains the brain MRI volume. Furthermore, mne watershed_bem script converts the scalp surface to fif format and saves the result to :file:`bem/{<subject>}-head.fif`.
This method depends on the availablily of MRI data acquired with a multi-echo FLASH sequence at two flip angles (5 and 30 degrees). These data can be acquired separately from the MPRAGE data employed in FreeSurfer cortical reconstructions but it is strongly recommended that they are collected at the same time with the MPRAGEs or at least with the same scanner. For easy co-registration, the images should have FOV, matrix, slice thickness, gap, and slice orientation as the MPRAGE data. For information on suitable pulse sequences, see :footcite:t:`FischlEtAl2004`.
Creation of the BEM meshes using this method involves the following steps:
Note
Different methods can be employed for the creation of the individual surfaces. For example, it may turn out that the watershed algorithm produces are better quality skin surface than the segmentation approach based on the FLASH images. If this is the case, outer_skin.surf can set to point to the corresponding watershed output file while the other surfaces can be picked from the FLASH segmentation data.
Since all images comprising the multi-echo FLASH data are contained in a single series, it is necessary to organize the images according to the echoes before proceeding to the BEM surface reconstruction. This can be accomplished by using dcm2niix or the MNE-C tool mne_organize_dicom if necessary, then use :func:`mne.bem.convert_flash_mris`.
The BEM surface segmentation and tessellation is automated with the script :ref:`mne flash_bem`. It assumes that a FreeSurfer reconstruction for this subject is already in place.
Before running :ref:`mne flash_bem` do the following:
Note
If mne flash_bem is run with the --noflash30 option, the :file:`flash30` directory is not needed, i.e., only the 5-degree flip angle flash data are employed.
It may take a while for mne flash_bem to complete. It uses the FreeSurfer directory structure under $SUBJECTS_DIR/$SUBJECT. The script encapsulates the following processing steps:
If the --noflash30 option is specified to mne flash_bem, steps 3 and 4 in the above are replaced by averaging over the different echo times in 5-degree flip angle data.
It is advisable to check the validity of the BEM meshes before using them. This can be done with: