workflows.smri.freesurfer.bem

create_bem_flow()

Link to code

Uses MNE’s Watershed algorithm to create Boundary Element Meshes (BEM)
for a subject’s brain, inner/outer skull, and skin. The surfaces are returned in the desired (by default, stereolithic .stl) format.

Example

>>> from nipype.workflows.smri.freesurfer import create_bem_flow
>>> bemflow = create_bem_flow()
>>> bemflow.inputs.inputspec.subject_id = 'subj1'
>>> bemflow.inputs.inputspec.subjects_dir = '.'
>>> bemflow.run()  

Inputs:

inputspec.subject_id : freesurfer subject id
inputspec.subjects_dir : freesurfer subjects directory

Outputs:

outputspec.meshes : output boundary element meshes in (by default) stereolithographic (.stl) format

Graph

digraph bem{

  label="bem";

  bem_inputspec[label="inputspec (utility)"];

  bem_WatershedBEM[label="WatershedBEM (mne)"];

  bem_surfconvert[label="surfconvert (freesurfer)"];

  bem_outputspec[label="outputspec (utility)"];

  bem_inputspec -> bem_WatershedBEM;

  bem_inputspec -> bem_WatershedBEM;

  bem_WatershedBEM -> bem_surfconvert;

  bem_surfconvert -> bem_outputspec;

}