Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_prepare_bemmodel”.
FT_PREPARE_BEMMODEL constructs triangulations of the boundaries between multiple segmented tissue types in an anatomical MRI and subsequently computes the BEM system matrix. Use as [vol, cfg] = ft_prepare_bemmodel(cfg, mri), or [vol, cfg] = ft_prepare_bemmodel(cfg, seg), or [vol, cfg] = ft_prepare_bemmodel(cfg, vol), or [vol, cfg] = ft_prepare_bemmodel(cfg) The configuration can contain cfg.tissue = [1 2 3], segmentation value of each tissue type cfg.numvertices = [Nskin_surface Nouter_skull_surface Ninner_skull_surface] cfg.conductivity = [Cskin_surface Couter_skull_surface Cinner_skull_surface] cfg.method = 'dipoli', 'openmeeg', 'brainstorm' or 'bemcp' cfg.isolatedsource = compartment number, or 0 Although the example configuration uses 3 compartments, you can use an arbitrary number of compartments. When the headmodel should be derived from the cfg, see FT_FETCH_VOL This function implements Oostendorp TF, van Oosterom A. Source parameter estimation in inhomogeneous volume conductors of arbitrary shape IEEE Trans Biomed Eng. 1989 Mar;36(3):382-91.
Share this page: