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] = ft_prepare_bemmodel(cfg, mri), or [vol] = ft_prepare_bemmodel(cfg, seg), or [vol] = ft_prepare_bemmodel(cfg, vol), or [vol] = 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.hdmfile = string, file containing the volume conduction model (can be empty) cfg.isolatedsource = compartment number, or 0 cfg.method = 'dipoli', 'openmeeg', 'brainstorm' or 'bemcp' Although the example configuration uses 3 compartments, you can use an arbitrary number of compartments. 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: